import type { DatabaseAdapter } from 'appwrite-utils-helpers'; import { type BackupMetadata, type BackupType } from "../../shared/backupMetadataSchema.js"; /** * Creates the centralized backup tracking table with enhanced schema */ export declare function createCentralizedBackupTrackingTable(db: DatabaseAdapter, databaseId: string): Promise; /** * Records backup metadata in the centralized tracking table */ export declare function recordCentralizedBackup(db: DatabaseAdapter, trackingDatabaseId: string, metadata: Omit): Promise; /** * Lists all backups of a specific type, sorted by creation date (newest first) */ export declare function listCentralizedBackups(db: DatabaseAdapter, trackingDatabaseId: string, options?: { backupType?: BackupType; resourceId?: string; limit?: number; }): Promise; /** * Gets a specific backup by its backup file ID */ export declare function getCentralizedBackup(db: DatabaseAdapter, trackingDatabaseId: string, backupId: string): Promise; /** * Updates restoration status for a backup */ export declare function updateRestorationStatus(db: DatabaseAdapter, trackingDatabaseId: string, backupRecordId: string, restorationData: { restoredAt: string; restorationStatus: 'completed' | 'partial' | 'failed'; restorationError?: string; }): Promise; /** * Gets the most recent comprehensive backup */ export declare function getLastComprehensiveBackup(db: DatabaseAdapter, trackingDatabaseId: string): Promise;