import type { JsonLimits, JsonValue, ResolvedJsonLimits } from './types'; /** Resolve bounded JSON limits; bytes count UTF-8, and depth starts at zero for the root. */ export declare function jsonLimits(options?: JsonLimits): ResolvedJsonLimits; /** * Serialize the supported JSON subset in canonical UTF-16 property order. * Rejects lossy values, sparse arrays, hidden properties, getters, custom prototypes, and cycles. * Never calls toJSON. Number/string encoding follows JSON.stringify (RFC 8785); negative zero is rejected. */ export declare function stringifyJson(value: unknown, options?: JsonLimits): string; /** Check encrypted input before decoding or RSA processing. */ export declare function checkJsonPayload(text: string, options?: JsonLimits): void; /** Parse bounded JSON and validate its supported value/depth/Unicode contract. */ export declare function parseJson(text: string, options?: JsonLimits): JsonValue;