export declare const _updateConflicts: { file: string; backup: string; }[]; /** 写入前检查冲突:内容不同则 rename 旧文件为 {name}-{timestamp}.{ext} */ export declare function safeWriteWithBackup(filePath: string, newContent: string): Promise; /** 目录复制前,对每个有差异的文件做时间戳重命名 */ export declare function safeCopyDirWithBackup(srcDir: string, destDir: string): Promise; export interface InitOptions { mode?: string; force?: boolean; interactive?: boolean; update?: boolean; tools?: string; } export declare function initCommand(options: InitOptions): Promise; export declare const TOOL_COMMANDS: [string, string, string][]; export declare function createToolIntegrations(projectRoot: string, toolFilter?: string): Promise; /** * 清理旧版本残留的命令文件和 Skill 目录。 * 遍历所有工具目录和 .agents/skills/,移除当前版本不存在的文件。 */ export declare function cleanupStaleFiles(projectRoot: string, commands: [string, string, string][], skillNames: string[]): Promise; /** * v6.84.0+: 初始化 AGENTS 规范数据库 * 将内置默认角色复制到 .speccore/AGENTS/ 目录 * 用户可在此目录下自定义角色或新增角色 */ export declare function initAgentsDir(projectRoot: string): Promise; /** * v6.85.0+: 初始化 RULES 规范库 * 将内置默认编码规范复制到 .speccore/RULES/ 目录 */ export declare function initRulesDir(projectRoot: string): Promise; /** * v6.87.0+: 初始化 COMMANDS 命令模板 * 将内置默认命令模板复制到 .speccore/COMMANDS/ 目录 */ export declare function initCommandsDir(projectRoot: string): Promise; /** * v6.88.0+: 初始化 SKILLS 可复用技能库 */ export declare function initSkillsDir(projectRoot: string): Promise; /** * v6.88.0+: 初始化 HOOKS 生命周期钩子 */ export declare function initHooksDir(projectRoot: string): Promise; /** * 同步 AGENTS.md — 将 .speccore/AGENTS/ 和 .speccore/RULES/ 下的规范投影到 AGENTS.md * * 文件名约定: * - `*.inline.md` → 内容内联到 AGENTS.md * - `*.md` → 只生成索引链接 */ export declare function syncAgentsMd(projectRoot: string): Promise; /** * 检查受保护文件是否需要升级提示。 * 文件已存在时不覆盖,但告诉用户模板有什么新变化。 */ export declare function checkUpgradeHints(projectRoot: string, speccoreDir: string): Promise; /** SETTINGS.md 模板内容 */ export declare function generateSettingsContent(): string; /** AI-RULES.md 模板内容 */ export declare function generateAIRulesContent(): string; //# sourceMappingURL=init.d.ts.map