//#region src/audit/canonical-json.d.ts /** * Canonical JSON serializer used by the audit chain. The serializer * matches the framework's stability contract: * * - Object keys are sorted lexicographically (`String#localeCompare` * with the `'en'` collator and a stable code-point fallback). * - Arrays preserve their input order. * - `undefined` values are dropped (not stringified to `null`); the * helper rejects raw `undefined` at the top level. * - `NaN`, `Infinity`, `-Infinity` are rejected. * - `BigInt` is rejected - the audit log never stores big integers. * - Strings are emitted with the JSON-spec escape sequences. * * @packageDocumentation */ /** * Serialise `value` into the framework's canonical JSON byte sequence. * The result is a UTF-8-safe string suitable for SHA-256 hashing. * * @stable */ declare function canonicalJson(value: unknown): string; //#endregion export { canonicalJson }; //# sourceMappingURL=canonical-json.d.ts.map