/** * Recovery Manager * Manage backups, recovery operations, and disaster recovery plans */ import { EventEmitter } from 'events'; import { Backup, BackupConfig, BackupStatus, BackupType, RecoveryOperation, RecoveryStatus, DisasterRecoveryPlan, FailoverConfig, BackupVerification, RetentionReport } from './types'; /** * Recovery manager for backup and disaster recovery operations */ export declare class RecoveryManager extends EventEmitter { private backups; private recoveryOps; private plans; private scheduledBackups; constructor(); /** * Create backup */ createBackup(config: BackupConfig): Promise; /** * Schedule automatic backups */ scheduleBackup(config: BackupConfig): string; /** * Cancel scheduled backup */ cancelScheduledBackup(scheduleId: string): void; /** * Restore from backup */ restoreBackup(backupId: string, options?: RecoveryOperation['options']): Promise; /** * Verify backup integrity */ verifyBackup(backupId: string): Promise; /** * Get backup by ID */ getBackup(backupId: string): Backup | undefined; /** * List backups */ listBackups(filter?: { status?: BackupStatus; type?: BackupType; after?: Date; before?: Date; }): Backup[]; /** * Delete backup */ deleteBackup(backupId: string): Promise; /** * Apply retention policy */ applyRetentionPolicy(): Promise; /** * Create disaster recovery plan */ createPlan(plan: DisasterRecoveryPlan): void; /** * Get disaster recovery plan */ getPlan(planId: string): DisasterRecoveryPlan | undefined; /** * List all plans */ listPlans(): DisasterRecoveryPlan[]; /** * Test recovery plan */ testRecoveryPlan(planId: string): Promise<{ success: boolean; duration: number; notes: string[]; }>; /** * Trigger failover */ triggerFailover(config: FailoverConfig, reason: string): Promise; /** * Get recovery operation status */ getRecoveryOperation(recoveryId: string): RecoveryOperation | undefined; /** * List recovery operations */ listRecoveryOperations(filter?: { status?: RecoveryStatus; backupId?: string; }): RecoveryOperation[]; /** * Perform backup operation */ private performBackup; /** * Perform recovery operation */ private performRecovery; /** * Generate backup ID */ private generateBackupId; /** * Generate recovery ID */ private generateRecoveryId; /** * Cleanup expired backups */ cleanup(): Promise; /** * Shutdown manager */ shutdown(): void; /** * Parse cron expression to milliseconds interval */ private parseCronExpression; /** * Check region health */ private checkRegionHealth; /** * Update routing configuration */ private updateRouting; /** * Update DNS records */ private updateDNS; /** * Verify failover success */ private verifyFailover; /** * Upload backup to AWS S3 */ private uploadToS3; /** * Upload backup to Google Cloud Storage */ private uploadToGCS; /** * Upload backup to Azure Blob Storage */ private uploadToAzure; } //# sourceMappingURL=manager.d.ts.map