/** * Constant-time byte-array comparison. * * Takes `(Uint8Array, Uint8Array)` rather than strings so the helper stays * framework-agnostic and reusable by any caller: hash bytes, raw token * bytes, HMAC tags. * * Algorithm (identical to source): * 1. Length mismatch → still run a dummy Web Crypto HMAC over equal-length * input to avoid a branch-timing leak, then return false. * 2. Equal length → XOR-accumulate diff across all bytes, return diff === 0. * * Web Crypto (`crypto.subtle`) is used for the dummy work (not Node's * `crypto.timingSafeEqual`) for portability across runtimes (Node 20+, Bun, * Deno, edge runtimes) and parity with the original Convex implementation. */ export declare function timingSafeEqual(a: Uint8Array, b: Uint8Array): Promise; //# sourceMappingURL=crypto.d.ts.map