export interface SnapshotRestoreArgs { /** 目标快照 SHA(完整或 ≥4 位短前缀)(必填) */ sha: string; /** 项目根目录(可选——默认 process.cwd()) */ project_dir?: string; /** * 🔴 人工确认(破坏性操作强制人审)。 * false/缺省 → 只返回时间线上下文挂起,不执行恢复; * true → 执行恢复 + 审计留痕。 */ human_confirmed?: boolean; /** 决策备注(写入 decision-log) */ comment?: string; } export interface SnapshotRestoreResult { /** 首行必须 [sofagent] 前缀 */ text: string; /** 结构化数据 */ data: { isError: boolean; /** 是否已执行恢复(false = 挂起等人审或失败) */ executed: boolean; /** 是否处于挂起等人审状态 */ awaitingHuman: boolean; sha: string; projectDir: string; /** 恢复的文件数(executed=true 时) */ restoredFiles?: number; decisionLogged: boolean; message?: string; }; } /** * 恢复到指定快照(强制人审)。 * * @param args 恢复参数 * @returns 结构化结果(text + data) */ export declare function snapshotRestore(args: SnapshotRestoreArgs): Promise; //# sourceMappingURL=snapshot-restore.d.ts.map