/** * JSON utilities: safe parse/stringify with size checking. * Size limits tied to maxPayloadBytes config. */ export interface ParseResult { ok: true; value: T; } export interface ParseError { ok: false; error: string; } export type ParseOutcome = ParseResult | ParseError; /** * Parse JSON safely with optional size limit. * Returns a result object instead of throwing. */ export declare function safeJsonParse(data: string, maxBytes?: number): ParseOutcome; export declare function safeJsonStringify(obj: unknown, maxBytes?: number): string; //# sourceMappingURL=json.d.ts.map