export declare type INodeFs = { is: IFsFlags; readdir(path: string): Promise; exists(path: string): Promise; ensureDir(path: string, options?: IFsEnsureOptions | number): Promise; writeFile(path: string, data: any, options?: IFsWriteFileOptions | string): Promise; readFile(path: string, options?: IFsReadFileOptions): Promise; copyFile(source: string, target: string, flags?: number): Promise; remove(path: string): Promise; join(...segments: string[]): string; resolve(...segments: string[]): string; dirname(path: string): string; basename(path: string): string; extname(path: string): string; }; export declare type IFsEnsureOptions = { mode?: number; }; export declare type IFsWriteFileOptions = { encoding?: string; flag?: string; mode?: number; }; export declare type IFsReadFileOptions = { flag?: string; } | { encoding: string; flag?: string; }; export declare type IFsFlags = { dir(path: string): Promise; file(path: string): Promise; };