/** * Canonical — Shared Cryptographic Primitives * * Deterministic JSON serialization and SHA-256 hashing * used across governance modules. Single source of truth * eliminates duplication and guarantees behavioral consistency. * * Uses Web Crypto API (globalThis.crypto.subtle) for runtime * agnosticism — works on Node.js 20+, Cloudflare Workers, Deno, Bun. * * @module * @internal */ /** * SHA-256 hash of a string, returned as lowercase hex. * * Uses the Web Crypto API (crypto.subtle) for runtime agnosticism. * * @param input - The string to hash * @returns 64-character hex digest */ export declare function sha256(input: string): Promise; /** * Canonical JSON serialization with deterministic key ordering. * * Guarantees that two structurally identical objects produce * the same string regardless of property insertion order. * This is critical for content-addressed hashing — the same * contract must always produce the same digest. * * @param obj - The value to serialize * @returns Deterministic JSON string */ export declare function canonicalize(obj: unknown): string; //# sourceMappingURL=canonicalize.d.ts.map