/** * Backup/restore system — create safety snapshots before risky operations. */ export interface OperationRecord { id: string; timestamp: string; operation: string; branch: string; backupBranch: string; headBefore: string; stackId: string; details: string; } /** * Create a backup branch of the current HEAD before a risky operation. * Returns the backup branch name. */ export declare function createBackup(operation: string, stackId: string, cwd?: string): Promise; /** * Restore from a backup branch — reset current branch to the backup point. */ export declare function restoreBackup(backupBranch: string, cwd?: string): Promise; /** * Get operation history, newest first. */ export declare function getHistory(): Promise; /** * Get the last N operations. */ export declare function getRecentHistory(count?: number): Promise; /** * Clean up old backup branches (older than 7 days). */ export declare function cleanupBackups(cwd?: string): Promise; //# sourceMappingURL=backup.d.ts.map