/** * Tells whether `json` may already be complete, i.e. whether handing it to `JSON.parse` can succeed at all. * * Tool call arguments are rendered repeatedly while they stream in, and the arguments object is truncated * until the last delta arrives: `JSON.parse` would scan the whole string only to throw, which gets quadratic * as the arguments grow (noticeable with large payloads such as whole-file writes). An arguments object can * only be complete once it ends with `}`, so callers skip the parse until then. Text that does not start * with `{` is not a streaming arguments object and is always considered worth parsing. */ export declare function mayBeCompleteJson(json: string): boolean; /** * Extracts a string field value from potentially incomplete JSON. * Uses JSON.parse for complete JSON, and a scan of the top-level entries for streaming scenarios. */ export declare function extractJsonStringField(json: string | undefined, fieldName: string): string | undefined; //# sourceMappingURL=toolcall-utils.d.ts.map