/** * @module jcs * @description The JSON Canonicalization Scheme (RFC 8785), and the * `sha-256:` digests Mandaitor builds on it. It mirrors core's * `lambdas/src/shared/execution/jcs.ts`, so that a digest computed here * equals the one Mandaitor signed: a receipt's `result_digest` is the digest * of the result's canonical form. * * It runs in the browser and in node: Web Crypto only, no dependencies. */ /** The RFC 8785 serialisation of an I-JSON value. Throws a TypeError on anything else. */ export declare function canonicalize(value: unknown): string; /** Unpadded base64url of bytes. */ export declare function base64UrlFromBytes(bytes: Uint8Array): string; /** `sha-256:` and the unpadded base64url SHA-256 of the text's UTF-8 bytes. */ export declare function sha256Digest(text: string): Promise; //# sourceMappingURL=jcs.d.ts.map