/**
 * Error Recovery Strategies Module
 *
 * Contains implementations of different error recovery strategies
 */
import { CortexError, ErrorRecoveryResult, RetryConfiguration } from '../types/error-types';
import { CodeSavant } from '../code-savant';
import { CognitiveCanvas } from '../cognitive-canvas';
export declare class ErrorRecoveryStrategies {
    private codeSavant;
    private cognitiveCanvas;
    constructor(cognitiveCanvas: CognitiveCanvas, codeSavant?: CodeSavant);
    /**
     * Execute retry strategy with intelligent backoff
     */
    executeRetryStrategy(error: CortexError, operation: () => Promise<any>, result: ErrorRecoveryResult, retryConfig: RetryConfiguration): Promise<boolean>;
    /**
     * Execute CodeSavant intervention strategy
     */
    executeCodeSavantStrategy(error: CortexError, operation: () => Promise<any>, result: ErrorRecoveryResult): Promise<boolean>;
    /**
     * Execute fallback strategy
     */
    executeFallbackStrategy(error: CortexError, operation: () => Promise<any>, result: ErrorRecoveryResult): Promise<boolean>;
    /**
     * Escalate error to human intervention
     */
    escalateToHuman(error: CortexError, result: ErrorRecoveryResult): Promise<void>;
    /**
     * Calculate backoff delay based on strategy
     */
    private calculateBackoffDelay;
    /**
     * Enhance error with additional context
     */
    private enhanceError;
    /**
     * Store CodeSavant analysis pheromone
     */
    private storeCodeSavantPheromone;
    /**
     * Store escalation pheromone
     */
    private storeEscalationPheromone;
    private sleep;
    private waitForResourceAvailability;
    private assessComplexity;
    private determineEscalationUrgency;
    private estimateResolutionTime;
}
//# sourceMappingURL=strategies.d.ts.map