/** * sha256 — pure-TypeScript SHA-256 implementation (G40 — v1.5.0) * ───────────────────────────────────────────────────────────────── * Zero runtime dependencies. Works in Node.js, browsers, Deno, and Bun. * * Based on the reference algorithm from FIPS 180-4. * Not intended for cryptographic security purposes — used only for cache * content-hash keying (G40). * * Usage * ───── * import { sha256Hex } from './sha256'; * const hash = sha256Hex('hello world'); // 'b94d27b9...' */ /** * Compute the SHA-256 hash of a UTF-8 string and return it as a hex string. * * @example * sha256Hex('hello') // '2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824' */ export declare function sha256Hex(input: string): string; /** * Compute the SHA-256 hash of a UTF-8 string and return the first `len` * hex characters (default 16 — 64-bit prefix, collision-resistant for cache keys). */ export declare function sha256Short(input: string, len?: number): string; //# sourceMappingURL=sha256.d.ts.map