import { Readable } from 'stream'; import yauzl, { Entry, ZipFile } from 'yauzl'; import { IOBaseConstructorParams, IOBase } from './base'; export type Files = { [filename: string]: Entry; }; type XpiConstructorParams = IOBaseConstructorParams & { autoClose?: boolean; zipLib?: typeof yauzl; }; export declare class Xpi extends IOBase { autoClose: boolean; files: Files; processed: boolean; zipLib: typeof yauzl; zipfile: ZipFile | undefined; constructor({ autoClose, filePath, stderr, zipLib, }: XpiConstructorParams); open(): Promise; handleEntry(entry: Entry, reject: (error: Error) => void): void; getFiles(_onEventsSubscribed?: () => void): Promise; checkPath(path: string): void; getFileAsStream(path: string): Promise; getFileAsString(path: string): Promise; getChunkAsBuffer(path: string, chunkLength: number): Promise; close(): void; } export {};