import type { AssistantMessage, ToolCall, ToolResultMessage } from '../ai/types.js';
import { ToolResultLedger } from './agent-loop-ledger.js';
export declare function extractToolCalls(message: AssistantMessage): ToolCall[];
export declare function synthesizeOrphanedToolResults(message: AssistantMessage, errorText: string, ledger: ToolResultLedger): ToolResultMessage[];
//# sourceMappingURL=agent-loop-orphan-repair.d.ts.map