/** * Extract the first complete top-level JSON object from a model reply. Robust to markdown fences * and to any trailing prose or extra objects — it depth-tracks braces (respecting strings/escapes) * to find the first balanced object, rather than the naive first-`{`/last-`}` slice that breaks * when a reply contains more than one object. If the first balanced region is not valid JSON (e.g. a * prose `{action}` placeholder before the real payload), it resumes scanning for a later object. */ export declare function extractFirstJsonObject(text: string): unknown; /** * Extract the first complete top-level JSON array from a model reply, with the same fence/prose * tolerance and resume-on-parse-failure behaviour as {@link extractFirstJsonObject}. */ export declare function extractFirstJsonArray(text: string): unknown;