/** * HMAC-SHA256 + SHA-256 hex digest primitives. * * Mirrors the Rust `hmac` + `sha2` crate usage in the edge-client (used for * TLS SPKI fingerprinting, message integrity, etc.). */ /** * Compute HMAC-SHA256 of `message` using `key`. * Returns the raw 32-byte digest as a `Buffer`. */ export declare function hmacSha256(key: Uint8Array, message: Uint8Array | string): Buffer; /** * Compute HMAC-SHA256 and return the hex-encoded digest (64 hex chars). */ export declare function hmacSha256Hex(key: Uint8Array, message: Uint8Array | string): string; /** * Compute SHA-256 of `data` and return the hex-encoded digest (64 hex chars). */ export declare function sha256Hex(data: Uint8Array | string): string; /** * Compute SHA-256 of `data` and return the raw 32-byte digest as a `Buffer`. */ export declare function sha256(data: Uint8Array | string): Buffer; /** * Constant-time comparison of two hex strings. * Returns `true` if they are equal (case-insensitive hex, same length). * * Mirrors the Rust `fingerprint_matches` using a timing-safe compare. * If lengths differ, returns `false` immediately (no timing leak of content). */ export declare function constantTimeHexEquals(a: string, b: string): boolean;