import type * as Engine from '../core/Engine.js'; import type * as Errors from '../core/Errors.js'; import * as internal from './internal/instantiate.js'; export * from '../core/X25519.js'; export { MemoryError } from './internal/instantiate.js'; /** * Compiles WASM implementations of selected [`X25519`](/api/X25519) * primitives, without installing them. * * Random key generation remains on Ox's default implementation. * * @example * ```ts twoslash * // @noErrors * import { Engine } from 'ox' * import { X25519 } from 'ox/wasm' * * await Engine.install({ X25519: X25519.engine() }) * * X25519.getPublicKey({ privateKey: '0x...' }) * ``` * * @returns The WASM implementation of part of the `X25519` 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 = internal.MemoryError | Errors.GlobalErrorType; } //# sourceMappingURL=X25519.d.ts.map