/**
 * Tool Use/Result Pair Repair
 *
 * After compaction, validates that every tool_use (tool_call) has a
 * corresponding tool_result and vice versa. Inserts synthetic
 * placeholders for orphaned entries.
 */
import type { ChatMessage, RepairResult } from "../types/index.js";
/**
 * Repair orphaned tool_use/tool_result pairs in a message array.
 *
 * Ensures every tool_call has a following tool_result and vice versa.
 */
export declare function repairToolPairs(messages: ChatMessage[]): RepairResult;
