export type ArchiveEntry = { size: number; path: string; type: string; lastModified: number; fileData: ArrayBuffer; fileName: string; }; export declare class ArchiveReader { private file; private client; private worker; private _content; private _processed; constructor(file: File, client: any, worker: any); /** * Prepares file for reading * @returns {Promise} archive instance */ open(): Promise; /** * Terminate worker to free up memory */ close(): Promise; /** * detect if archive has encrypted data * @returns {boolean|null} null if could not be determined */ hasEncryptedData(): Promise; /** * set password to be used when reading archive */ usePassword(archivePassword: string): Promise; /** * Set locale, defaults to en_US.UTF-8 */ setLocale(locale: string): Promise; /** * Returns object containing directory structure and file information * @returns {Promise} */ getFilesObject(): Promise; getFilesArray(): Promise; extractSingleFile(target: string): Promise; /** * Returns object containing directory structure and extracted File objects * @param {Function} extractCallback * */ extractFiles(extractCallback?: Function | undefined): Promise; }