/** * Canonical JSON of a sealed plaintext (#786): RFC 8785 with its full number * rule. * * Keys sort by UTF-16 code unit and strings use the ECMAScript serialization, * the same as `canonicalizeJson`. Numbers differ. A finite number serializes * as `Number.prototype.toString` (RFC 8785 ยง3.2.2.3), so a decimal, an * exponent and an integer above 2^53 are sealable. `-0` serializes as `0`. * NaN and the infinities have no JSON form and throw. * * Only the sealed plaintext uses this rule. The AAD, the MAC identity, member * chain entries and key packages keep `canonicalizeJson`, whose safe-integer * rule belongs to the attestation contract. */ import type { JsonValue } from '../attestation'; /** The canonical JSON text of a sealed plaintext value. Throws `sealed_secret_invalid` outside JSON. */ export declare function canonicalizeSealedJson(value: JsonValue): string;