export declare function repairJson(json: string): string; export declare function parseJsonWithRepair(json: string): T; /** * Attempts to parse potentially incomplete JSON during streaming. * Always returns a valid object, even if the JSON is incomplete. * * @param partialJson The partial JSON string from streaming * @returns Parsed object or empty object if parsing fails */ export declare function parseStreamingJson>(partialJson: string | undefined): T; /** * Whether a string is a complete, well-formed JSON document (strict parse, no * repair). Used to distinguish a tool-call argument blob that finished cleanly * from one that was cut off mid-stream (truncation). An empty / whitespace-only * string is treated as complete: a tool invoked with no arguments legitimately * streams an empty buffer and must not be flagged as truncated. */ export declare function isCompleteJson(text: string | undefined): boolean;