//#region ../ai/src/utils/safe-json-parse.d.ts /** * Parse a JSON string, returning a caller-supplied fallback when the input * is empty or malformed instead of throwing. Useful at provider boundaries * where tool-call arguments may arrive as `null`, `""`, or partial JSON * during streaming — callers want a safe default, not an exception. * * @example * const args = safeJsonParse>(toolCall.function.arguments, {}); */ declare function safeJsonParse(data: string | null | undefined, defaultValue: TValue): TValue; //#endregion export { safeJsonParse }; //# sourceMappingURL=safe-json-parse.d.mts.map