diff options
Diffstat (limited to 'node_modules/asar/lib/index.d.ts')
-rw-r--r-- | node_modules/asar/lib/index.d.ts | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/node_modules/asar/lib/index.d.ts b/node_modules/asar/lib/index.d.ts deleted file mode 100644 index b3790ec..0000000 --- a/node_modules/asar/lib/index.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { IOptions as GlobOptions } from 'glob'; -import { Stats } from 'fs'; - -export type CreateOptions = { - dot?: boolean; - globOptions?: GlobOptions; - ordering?: string; - pattern?: string; - transform?: (filePath: string) => NodeJS.ReadWriteStream | void; - unpack?: string; - unpackDir?: string; -}; - -export type ListOptions = { - isPack: boolean; -}; - -export type EntryMetadata = { - unpacked: boolean; -}; - -export type DirectoryMetadata = EntryMetadata & { - files: { [property: string]: EntryMetadata }; -}; - -export type FileMetadata = EntryMetadata & { - executable?: true; - offset?: number; - size?: number; -}; - -export type LinkMetadata = { - link: string; -}; - -export type Metadata = DirectoryMetadata | FileMetadata | LinkMetadata; - -export type InputMetadataType = 'directory' | 'file' | 'link'; - -export type InputMetadata = { - [property: string]: { - type: InputMetadataType; - stat: Stats; - } -}; - -export type DirectoryRecord = { - files: Record<string, DirectoryRecord | FileRecord>; -}; - -export type FileRecord = { - offset: string; - size: number; - executable?: boolean; - integrity: { - hash: string; - algorithm: 'SHA256'; - blocks: string[]; - blockSize: number; - }; -} - -export type ArchiveHeader = { - // The JSON parsed header string - header: DirectoryRecord; - headerString: string; - headerSize: number; -} - -export function createPackage(src: string, dest: string): Promise<void>; -export function createPackageWithOptions( - src: string, - dest: string, - options: CreateOptions -): Promise<void>; -export function createPackageFromFiles( - src: string, - dest: string, - filenames: string[], - metadata?: InputMetadata, - options?: CreateOptions -): Promise<void>; - -export function statFile(archive: string, filename: string, followLinks?: boolean): Metadata; -export function getRawHeader(archive: string): ArchiveHeader; -export function listPackage(archive: string, options?: ListOptions): string[]; -export function extractFile(archive: string, filename: string): Buffer; -export function extractAll(archive: string, dest: string): void; -export function uncache(archive: string): boolean; -export function uncacheAll(): void; |