import AdmZip from "adm-zip"; import * as fs from "fs-extra"; import { Ignore } from "ignore"; export declare const fileOperationDeps: { createZip: () => AdmZip; writeZip: (zip: AdmZip, cache: string) => Promise; existsSync: typeof fs.existsSync; remove: typeof fs.remove; mkdirs: typeof fs.mkdirs; createReadStream: typeof fs.createReadStream; }; /** * Asynchronously zip a folder and return buffer * @param sourceDir base dir * @param notIncluded block list * @param cache zip cache file location */ export declare function zipFolderAsync(sourceDir: string, cache: string, notIncluded: Ignore): Promise; export declare function forEachFileAndDir(root: string, callback: (itemPath: string, stats: fs.Stats) => boolean | void, filter?: (itemPath: string) => boolean): Promise; //# sourceMappingURL=fileOperation.d.ts.map