import type { ConversationEventV1 } from './session/conversation-types.js'; import type { AgentSession } from './session/types.js'; export interface AgentRecoveryEvidence { ok: boolean; reason: 'RECOVERY_TOOLS_VERIFIED' | 'RECOVERY_PROMPT_MISSING' | 'RECOVERY_TURN_INCOMPLETE' | 'RECOVERY_TURN_FAILED' | 'RECOVERY_CHOOSE_MISSING' | 'RECOVERY_CURRENT_MISSING' | 'RECOVERY_GET_MESSAGES_MISSING' | 'RECOVERY_TOOL_ORDER_INVALID'; chooseIdentity: boolean; currentIdentity: boolean; getMessages: boolean; turnCompleted: boolean; } /** * Verify one exact recovery turn from its durable conversation ledger. Tool * arguments/results are inspected only to derive these booleans and are never * returned or persisted by this gate. */ export declare function evaluateAgentRecovery(events: readonly ConversationEventV1[], promptId: string, identity: string): AgentRecoveryEvidence; export declare function recoverAgentIdentity(session: AgentSession, identity: string): Promise;