import { EventEmitter } from 'events'; import fs from 'fs'; import { Archive, BaseArchive } from './StreamArchive'; type EntryDict = { [file: string]: FolderEntry; }; export type FolderEntry = { path: string; stat: fs.Stats; name: string; relative_path: string; }; export declare class FolderArchive implements BaseArchive { protected _ready: Promise; protected root_dir: string; protected entries: EntryDict; events: EventEmitter<[never]>; constructor(archive: string | FolderArchive); protected getEntries(from_directory: string): Promise; dir(dir_name: string): FolderArchive; has(name: string): boolean; search(query: RegExp): FolderEntry[]; searchDir(query: RegExp): FolderEntry[]; ready(): Promise; ls(current_dir_only?: boolean): { [name: string]: FolderEntry; }; get(name: string, type?: "text" | "arraybuffer" | "blob", parse_auto?: boolean): Promise; read(file: FolderEntry, type?: "text" | "arraybuffer" | "blob", parse_auto?: boolean): Promise; fromFile(name: string | FolderEntry): Promise; protected get files(): EntryDict; protected get dirs(): EntryDict; protected ltrim(name: string, left_str: string): string; } export {};