import type { VersionRecord } from '../types.js'; /** * 检查目录是否存在 */ export declare function dirExists(dir: string): Promise; /** * 确保目录存在 */ export declare function ensureDir(dir: string): Promise; /** * 递归复制目录 */ export declare function copyDir(src: string, dest: string): Promise; /** * 递归删除目录 */ export declare function removeDir(dir: string): Promise; /** * 读取版本记录文件 */ export declare function readVersionFile(versionFilePath: string): Promise; /** * 写入版本记录文件 */ export declare function writeVersionFile(versionFilePath: string, record: VersionRecord): Promise; /** * 获取 skill 源目录 */ export declare function getSkillSourceDir(): string; /** * 检查 skill 是否已安装 */ export declare function isSkillInstalled(targetDir: string, skillName: string): Promise; /** * 获取目标目录中已存在的 skills */ export declare function getExistingSkills(targetDir: string, skillNames: string[]): Promise; //# sourceMappingURL=file.d.ts.map