interface MigrationContext { sourceEnv: string; targetEnv: string; backupId?: string; sitesInProgress: number[]; completedSites: number[]; failedSites: Array<{ siteId: number; error: string; step: string; }>; networkTablesProcessed: boolean; startTime: Date; currentStep: string; options: any; } interface RetryConfig { maxRetries: number; retryDelay: number; backoffMultiplier: number; retryableErrors: string[]; } interface RecoveryResult { success: boolean; action: 'rollback' | 'retry' | 'skip' | 'abort'; message: string; restoredSites?: number[]; restoredNetworkTables?: boolean; } interface HealthCheckResult { healthy: boolean; issues: string[]; warnings: string[]; recommendations: string[]; } export declare class ErrorRecovery { private static mysqlClientAvailable; private static hasNativeMysqlClient; private static buildMysqlCommand; private static readonly DEFAULT_RETRY_CONFIG; static isRetryableError(error: string): boolean; static retryWithBackoff(operation: () => Promise, context: string, config?: Partial): Promise; static handleMigrationFailure(context: MigrationContext, error: Error, options?: { autoRollback?: boolean; interactive?: boolean; skipConfirmation?: boolean; }): Promise; static performRollback(context: MigrationContext, options?: { skipConfirmation?: boolean; }): Promise; static promptRecoveryAction(context: MigrationContext): Promise; static performHealthCheck(environment: string, sitesInProgress?: number[]): Promise; static checkDatabaseIntegrity(environment: string): Promise; static findOrphanedTables(environment: string): Promise; static checkDiskSpace(): Promise; static createMigrationContext(sourceEnv: string, targetEnv: string, options: any): MigrationContext; static updateMigrationContext(context: MigrationContext, updates: Partial): MigrationContext; static cleanupAfterFailure(context: MigrationContext, options?: { cleanupTempFiles?: boolean; cleanupBackups?: boolean; workDir?: string; }): Promise; } export {}; //# sourceMappingURL=error-recovery.d.ts.map