/** * 路径解析 */ export declare const pathResolve: (...paths: string[]) => string; /** * 获取文件全名, 不包括后缀 */ export declare const getFileName: (url: string) => string; /** * 检查文件是否存在 */ export declare const isFileExist: (path: string) => Promise; /** * 写 buffer 到文件 */ export declare const writeBuffer: (path: string, buffer: any) => Promise; /** * 写文件到硬盘 */ export declare const writeFile: (path: string, data: any | any[]) => Promise; /** * 删除文件 * @param path */ export declare const rm: (path: string) => Promise; /** * 获取当前运行的工作目录 */ export declare const getCwd: () => string; /** * 递归创建目录 */ export declare const mkdir: (dir: string) => Promise; /** * 删除目录 */ export declare const rmdir: (dir: string) => Promise; /** * 复制文件 */ export declare const copyFile: (src: string, dest: string) => Promise; /** * 移动文件 */ export declare const mv: (from: string, to: string) => Promise; /** * 判断路径是否对应的是目录 */ export declare const isDirectory: (path: string) => Promise; /** * 获取指定目录中的所有目录 */ export declare const getDirs: (dir: string) => Promise; /** * 读文件 */ export declare const readFile: (path: string) => Promise; /** * 读取目录下的所有文件(包括目录) */ export declare const getFiles: (path: string) => Promise;