/** * Wire values and canonical JSON for the journal (spec §2.6). Shared by the * sealer and netting (S3a, S3b). * * @module store/sync/sealer-values * @task T12984 */ /** A typed wire value (§2.6): canonical JSON with typed escapes. */ export type WireValue = string | number | null | { readonly $i: string; } | { readonly $r: string; } | { readonly $b: string; }; /** * Decode one `enc()` text (SQLite `quote()`, or `r<%!.17g>` for REAL) to a * typed wire value. * * @example * ```ts * decodeEnc("'it''s'"); // "it's" * decodeEnc('42'); // 42 * decodeEnc('9007199254740993'); // { $i: '9007199254740993' } * decodeEnc('r0.10000000000000001'); // { $r: '0.10000000000000001' } * decodeEnc("X'00FF'"); // { $b: 'AP8=' } * decodeEnc('NULL'); // null * ``` * @throws {Error} on text no `enc()` can produce. */ export declare function decodeEnc(text: string): WireValue; /** Canonical JSON: keys sorted at every level. */ export declare function canonicalJson(value: unknown): string; //# sourceMappingURL=sealer-values.d.ts.map