import type { BackupMeta } from "./types.js"; /** Create a snapshot of the workspace. Returns the backup directory path. */ export declare function createBackup(workspace: string, sourceVersion: string, targetVersion: string, chain: string[]): string; export interface BackupEntry { id: string; path: string; meta: BackupMeta; } export declare function listBackups(): BackupEntry[]; /** Restore a workspace from a backup directory (overwrites target). */ export declare function restoreBackup(backupDir: string, targetWorkspace: string): void; export declare function deleteBackup(id: string): boolean; export declare function getBackupRoot(): string;