/** * 文件系统操作工具 */ import fs from "fs-extra"; export declare const fsUtils: { /** * 确保目录存在 */ ensureDir: (dirPath: string) => Promise; /** * 读取文件 */ readFile: (filePath: string) => Promise; /** * 写入文件 */ writeFile: (filePath: string, content: string) => Promise; /** * 检查文件是否存在 */ pathExists: (filePath: string) => Promise; /** * 读取 JSON 文件 */ readJson: (filePath: string) => Promise; /** * 写入 JSON 文件 */ writeJson: (filePath: string, data: any) => Promise; /** * 复制文件或目录 */ copy: (src: string, dest: string) => Promise; /** * 删除文件或目录 */ remove: (filePath: string) => Promise; /** * 读取目录 */ readdir: (dirPath: string) => Promise; /** * 获取文件或目录的状态 */ stat: (filePath: string) => Promise; }; //# sourceMappingURL=fs.d.ts.map