/** * Hash utilities using Web Crypto API and DJB2. * * Provides `hash_sha256`, `hash_sha384`, `hash_sha512`, `hash_sha1` (Web Crypto, async) * and `hash_insecure` (DJB2, fast non-cryptographic). * For BLAKE3, see `hash_blake3` in `hash_blake3.ts`. * * @module */ /** * Computes a SHA-1 hash using Web Crypto API. * * @param data - String or binary data to hash. Strings are UTF-8 encoded. * @returns 40-character hexadecimal hash string */ export declare const hash_sha1: (data: BufferSource | string) => Promise; /** * Computes a SHA-256 hash using Web Crypto API. * * @param data - String or binary data to hash. Strings are UTF-8 encoded. * @returns 64-character hexadecimal hash string */ export declare const hash_sha256: (data: BufferSource | string) => Promise; /** * Computes a SHA-384 hash using Web Crypto API. * * @param data - String or binary data to hash. Strings are UTF-8 encoded. * @returns 96-character hexadecimal hash string */ export declare const hash_sha384: (data: BufferSource | string) => Promise; /** * Computes a SHA-512 hash using Web Crypto API. * * @param data - String or binary data to hash. Strings are UTF-8 encoded. * @returns 128-character hexadecimal hash string */ export declare const hash_sha512: (data: BufferSource | string) => Promise; /** * Computes a fast non-cryptographic hash using DJB2 algorithm. * Use for content comparison and cache keys, not security. * * Note: Strings use UTF-16 code units, buffers use raw bytes. * For non-ASCII, `hash_insecure(str) !== hash_insecure(encoder.encode(str))`. * * @param data - string or binary data to hash * @returns 8-character hex-encoded unsigned 32-bit hash */ export declare const hash_insecure: (data: BufferSource | string) => string; //# sourceMappingURL=hash.d.ts.map