/**
 * Local SQLite backup, restore, integrity, compact, and migration dry-run.
 */
export declare const DB_BACKUP_SCHEMA = "todos.db_backup.v1";
export interface BackupResult {
    schema_version: typeof DB_BACKUP_SCHEMA;
    source_path: string;
    backup_path: string;
    bytes: number;
    method: "sqlite_backup" | "file_copy";
    created_at: string;
}
export interface IntegrityResult {
    schema_version: typeof DB_BACKUP_SCHEMA;
    path: string;
    ok: boolean;
    quick_check: string;
    foreign_keys: boolean;
    tables: number;
    errors: string[];
}
export interface MigrationDryRunResult {
    schema_version: typeof DB_BACKUP_SCHEMA;
    current_version: number;
    pending_migrations: number[];
    would_apply: number;
}
export declare function backupDatabase(outputPath: string, sourcePath?: string): BackupResult;
export declare function restoreDatabase(backupPath: string, targetPath?: string): BackupResult;
export declare function checkDatabaseIntegrity(dbPath?: string): IntegrityResult;
export declare function compactDatabase(dbPath?: string): {
    path: string;
    bytes_before: number;
    bytes_after: number;
};
export declare function migrationDryRun(dbPath?: string): MigrationDryRunResult;
export declare function defaultBackupPath(dbPath?: string): string;
export declare function readBackupManifest(backupPath: string): Record<string, unknown> | null;
export declare function writeBackupManifest(backupPath: string, result: BackupResult): void;
//# sourceMappingURL=db-backup.d.ts.map