import type { RecoveryPolicy, RecoveryRule, RecoveryEvent, RecoveryStrategy, RecoveryTrigger } from '../types/recovery.js'; /** * Evaluate a recovery policy against a failure and return the * matching rule and strategy. */ export declare function evaluateRecovery(opts: { policy: RecoveryPolicy; failureType: RecoveryTrigger['failureType']; consecutiveFailures?: number; totalAttempts?: number; }): { strategy: RecoveryStrategy; rule: RecoveryRule | null; hardStop: boolean; reason: string; }; /** * Create a signed recovery event for the audit trail. */ export declare function createRecoveryEvent(opts: { agentId: string; delegationId: string; failedAction: string; failureType: RecoveryTrigger['failureType']; failureDetail: string; matchedRule: string; strategyApplied: RecoveryStrategy; attemptNumber: number; recoverySucceeded: boolean; recoveryReceiptId?: string; }): RecoveryEvent; /** * Create a default recovery policy suitable for most agent deployments. * Conservative: escalates to human early, terminates on repeated failures. */ export declare function createDefaultRecoveryPolicy(opts?: { policyId?: string; maxTotalAttempts?: number; }): RecoveryPolicy; //# sourceMappingURL=recovery.d.ts.map