UNPKG

749 BTypeScriptView Raw
1export declare const fileExists: (path: string) => Promise<boolean>;
2export declare const dirExists: (path: string) => Promise<boolean>;
3export declare const readDir: (path: string) => Promise<string[]>;
4export declare const rmFile: (path: string) => Promise<void>;
5export declare const writeFile: (path: string, content: string) => Promise<void>;
6export declare const rmdir: (path: string) => Promise<void>;
7export declare const mkdir: (path: string) => Promise<void>;
8export interface CopyFileOpts {
9 transform?: (source: string) => string | Promise<string>;
10}
11export declare const copyFile: (src: string, dest: string, { transform }?: CopyFileOpts) => Promise<void>;
12export declare const copyDir: (src: string, dest: string) => Promise<void>;