/**
 * Recovery Handler - Core error handling logic
 */
import type { ErrorContext, RecoveryAction, RecoveryRecord, RecoveryStats } from "./interfaces.js";
/**
 * Handle an error and determine recovery action
 */
export declare function handleError(context: ErrorContext): RecoveryAction;
/**
 * Execute a function with auto-recovery
 */
export declare function withRecovery<T>(sessionId: string, fn: () => Promise<T>, options?: {
    maxRetries?: number;
    onRetry?: (action: RecoveryAction) => void;
}): Promise<T>;
/**
 * Get recovery statistics
 */
export declare function getStats(): RecoveryStats;
/**
 * Get recent recovery history
 */
export declare function getHistory(limit?: number): RecoveryRecord[];
/**
 * Clear error counts for a session
 */
export declare function clearSession(sessionId: string): void;
