/** * hash.ts * * Content hashing utilities for MajikSignature. * Thin wrappers around @stablelib/sha256 so the rest of the library * never imports crypto primitives directly. */ /** * SHA-256 hash of arbitrary bytes. * Returns raw 32-byte Uint8Array. */ export declare function sha256Bytes(input: Uint8Array): Uint8Array; /** * Normalize content to Uint8Array then hash it. * Strings are UTF-8 encoded before hashing. */ export declare function hashContent(content: Uint8Array | string): Uint8Array; /** * Encode raw bytes to base64. * Kept here so hash.ts is self-contained for its callers. */ export declare function bytesToBase64(bytes: Uint8Array): string; /** * Decode base64 to raw bytes. */ export declare function base64ToBytes(b64: string): Uint8Array;