/// import { PathLike } from 'fs'; export declare function fileExists(dirPath: PathLike): Promise; /** * 递归创建目录 * @param dirPath 目录路径 */ export declare function createDirectory(dirPath: string): Promise; export declare function getFileNameWithoutExtName(filePath: string): string; export declare function addExtName(filePath: string, extName: string): string; /** * 获取服务绝对路径 * @param originPath 原始路径 */ export declare function resolveServerPath(originPath: string): string; /** * 异步加载文本文件 * @param filePath 文本文件路径 */ export declare function asyncLoadTextFile(filePath: string): Promise; /** * 异步保存文本文件 * @param filePath 文本文件路径 */ export declare function asyncSaveTextFile(filePath: string, obj: any): Promise; /** * 异步加载文本文件 * @param filePath 文本文件路径 */ export declare function syncLoadTextFile(filePath: string): any; /** * 同步保存Text文件 * @param filePath JSON文件路径 * @param obj 要保存的对象 */ export declare function syncSaveTextFile(filePath: string, obj: any): void;