export type JsonParseMode = "strict" | "fenced" | "compat"; /** * Parse a JSON value out of model text. `strict` requires the whole text to * be JSON. `fenced` additionally accepts a ```json fenced block. `compat` * (the default) also scans for the first balanced JSON object or array * embedded in chatty output. */ export declare function parseJsonValue(text: string, options?: { mode?: JsonParseMode; }): unknown; /** Strict parse: the whole text must be a JSON value. */ export declare function parseStrictJsonValue(text: string): unknown; /** Default tolerant parser: direct JSON, then fenced, then embedded object. */ export declare function extractJsonValue(text: string): unknown;