import type * as Engine from '../core/Engine.js'; import type * as Errors from '../core/Errors.js'; export * from '../core/Hash.js'; /** * Creates a Node.js implementation of the [`Hash`](/api/Hash) engine slot, * without installing it. * * Most callers want [`Engine.install`](/node/crypto/Engine/install) instead, * which installs every implementation this entrypoint provides. Reach for this * to install or hold the `Hash` slot on its own. * * Node does not provide BLAKE3, and its `sha3-256` is not Ethereum Keccak256. * Node HMAC states cannot be cloned. * * The engine omits those implementations. Earlier overrides remain installed; * Ox uses its defaults when no override exists. * * @example * ```ts twoslash * // @noErrors * import { Engine } from 'ox' * import { Hash } from 'ox/node' * * await Engine.install({ Hash: Hash.engine() }) * * Hash.sha256('0xdeadbeef') * ``` * * @returns The raw `Hash` engine slot. */ export declare function engine(): Promise; export declare namespace engine { /** Every `Hash` primitive this module implements. */ type ReturnType = { [key in 'createRipemd160' | 'createSha256' | 'hmacSha256' | 'ripemd160' | 'sha256']-?: NonNullable; }; type ErrorType = Errors.GlobalErrorType; } //# sourceMappingURL=Hash.d.ts.map