import type * as Engine from '../core/Engine.js'; import type * as Errors from '../core/Errors.js'; export * from '../core/X25519.js'; /** * Creates a Node.js implementation of the [`X25519`](/api/X25519) engine slot, * without installing it. * * Random key generation remains on Ox's default implementation. * * @example * ```ts twoslash * // @noErrors * import { Engine } from 'ox' * import { X25519 } from 'ox/node' * * await Engine.install({ X25519: X25519.engine() }) * * X25519.getPublicKey({ privateKey: '0x...' }) * ``` * * @returns The raw `X25519` engine slot. */ export declare function engine(): Promise; export declare namespace engine { /** Every `X25519` primitive this module implements. */ type ReturnType = { [key in 'getPublicKey' | 'getSharedSecret']-?: NonNullable; }; type ErrorType = Errors.GlobalErrorType; } //# sourceMappingURL=X25519.d.ts.map