import type { ToolDefinition } from '../types/tools.js'; /** Result of a tool call repair attempt. */ export interface RepairResult { repaired: boolean; original: Record; fixed: Record; /** Human-readable list of what was fixed. */ repairs: string[]; /** Repair failures callers can surface as warning metadata. */ warnings?: string[] | undefined; } /** * 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, schema: ToolDefinition): RepairResult; //# sourceMappingURL=auto-repair.d.ts.map