/** * Database Backup Manager * * Manages database backups for migration safety. */ import type { DatabaseClient } from '../../db/client.js'; /** * Backup result */ export interface DbBackupResult { /** Whether backup was successful */ success: boolean; /** Path to backup file */ backupPath?: string; /** Size of backup in bytes */ size?: number; /** Error message if failed */ error?: string; } /** * Database backup manager * * Creates and manages backups of the SQLite database for migration safety. */ export declare class DbBackupManager { private db; private projectRoot; private readonly BACKUP_DIR; private readonly KEEP_BACKUPS; constructor(db: DatabaseClient, projectRoot: string); /** * Create a backup of the database * * @returns Backup result */ createBackup(): Promise; /** * List all database backups * * @returns Array of backup file names */ listBackups(): Promise; /** * Restore from a backup * * @param backupFileName - Name of backup file to restore * @returns True if restore was successful */ restoreFromBackup(backupFileName: string): Promise; /** * Clean up old backups (keep last 5) */ private cleanupOldBackups; } //# sourceMappingURL=db-backup-manager.d.ts.map