import type { ToolDefinition } from '../types/tools.js';
/** Result of a tool call repair attempt. */
export interface RepairResult {
    repaired: boolean;
    original: Record<string, unknown>;
    fixed: Record<string, unknown>;
    /** Human-readable list of what was fixed. */
    repairs: string[];
}
/**
 * Attempt to repair a malformed tool call by inferring missing/wrong params.
 *
 * Returns repaired arguments and a log of what was fixed.
 * If no repairs are needed (or repair is impossible), returns the original unchanged
 * with repaired=false.
 *
 * Design: never throws — always returns a result. Premium models that send
 * correct calls pass through unchanged (zero overhead).
 */
export declare function repairToolCall(toolName: string, args: Record<string, unknown>, schema: ToolDefinition): RepairResult;
//# sourceMappingURL=auto-repair.d.ts.map