/** * Deterministic canonical JSON serialization for arbitrary values. * * Object keys are sorted at every depth so two values that differ only in * key order serialize identically — the property any hash-then-compare * scheme (manifest digests, contract hashes) depends on. * * @module worker/manifest/canonical-json */ /** * Serialize an arbitrary value with object keys sorted at every depth. * * Accepts `unknown` rather than a `JSONValue` bound because callers such as * a JSON-Schema converter's output are structurally JSON-safe by * construction (trusted, already-serialized-once data) without necessarily * satisfying that type at the TypeScript level. `undefined` values inside * objects are dropped, matching `JSON.stringify`'s own behavior, since this * function is a drop-in canonical replacement for it. */ export declare function canonicalJsonStringify(value: unknown): string;