import { stableHash } from "./canonicalize.js"; import type { CanonicalJsonSchema, NormalizedToolCall, RepairOptions } from "./types.js"; export interface RepairContext { /** Canonical args already available (parsed). When absent, parse rawArgs. */ parsedArgs?: Record; /** Raw args string (possibly truncated JSON). */ rawArgs?: string; /** Schema for validation (canonical). */ schema: CanonicalJsonSchema; options?: RepairOptions; } /** Guard: would a repair for this field be an invented semantic value? */ declare function isForbiddenInvention(field: string | undefined, kind: string): boolean; /** * Run the full normalization + conservative repair pipeline for a single raw * tool call. Requires a canonical tool name (already alias-resolved by caller * or resolved here), a tool-call id, and the provider-emitted args. */ export declare function normalizeToolCall(input: { name: string; rawName: string; toolCallId: string; rawArgs?: string; parsedArgs?: Record; schema: CanonicalJsonSchema; canonicalName?: string; aliasMap?: Record; options?: RepairOptions; }): NormalizedToolCall; export declare const stableObjHash: typeof stableHash; /** Convenience re-export for diagnostics. */ export { isForbiddenInvention }; //# sourceMappingURL=repair.d.ts.map