/** * Shared LLM JSON helpers: best-effort repair of malformed model output and * the common "call the model, expect JSON back" pattern used by the * consolidation / reflection pipelines. */ import { chatCompletion, type ChatMessage } from "../integrations/openai/chat.js"; /** * Best-effort repair of malformed JSON returned by LLMs. * Handles: markdown fences, unescaped control chars, truncated structures. */ export declare function repairAndParseJSON(raw: string): unknown; /** Chat completion that expects a JSON payload: call the model, then repair-parse the response. */ export declare function chatCompletionJson(messages: ChatMessage[], apiKey: string, options?: Parameters[2]): Promise; //# sourceMappingURL=json.d.ts.map