import type * as Engine from '../core/Engine.js'; import type * as Errors from '../core/Errors.js'; export * from '../core/Keystore.js'; /** * Creates a Node.js implementation of the [`Keystore`](/api/Keystore) 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 `Keystore` slot on its own. * * This engine deliberately omits scrypt. OpenSSL rejects Ox's default scrypt * parameter shape, so installing it would make valid existing calls fail. * * @example * ```ts twoslash * // @noErrors * import { Engine } from 'ox' * import { Keystore } from 'ox/node' * * await Engine.install({ Keystore: Keystore.engine() }) * * Keystore.pbkdf2({ password: 'testpassword' }) * ``` * * @returns The raw `Keystore` engine slot. */ export declare function engine(): Promise; export declare namespace engine { /** Every `Keystore` primitive this module implements. */ type ReturnType = { [key in 'aesCtrDecrypt' | 'aesCtrEncrypt' | 'pbkdf2Sha256' | 'pbkdf2Sha256Async']-?: NonNullable; }; type ErrorType = Errors.GlobalErrorType; } //# sourceMappingURL=Keystore.d.ts.map