/** * 复制模板文件到目标目录(不重命名) */ export declare function copyTemplate(templateName: string, targetPath: string): Promise; /** * 替换文件中的变量 */ export declare function replaceVariablesInFile(filePath: string, variables: Record): Promise; /** * 递归替换目录中所有文件的变量,并重命名 .template 文件 */ export declare function replaceVariablesInDir(dirPath: string, variables: Record, extensions?: string[]): Promise; /** * 创建目录(如果不存在) */ export declare function ensureDir(dirPath: string): Promise; /** * 检查目录是否为空 */ export declare function isDirEmpty(dirPath: string): Promise; /** * 检查路径是否存在 */ export declare function pathExists(path: string): Promise; //# sourceMappingURL=files.d.ts.map