import type { ToolCall } from "../../types.js"; export declare function preprocessJson(raw: string): string; export declare function lenientJsonParse(text: string): unknown | undefined; export declare function tryParseCall(raw: string): ToolCall | undefined; export declare function extractBalancedJson(text: string): string | undefined; export declare function parseXmlToolCall(text: string): ToolCall | undefined; export declare const TOOL_ARG_KEYS: Set;