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/Ed25519.js'; export { MemoryError } from './internal/instantiate.js'; /** * Compiles WASM implementations of selected [`Ed25519`](/api/Ed25519) * primitives, without installing them. * * Public-key conversion and random key generation remain on Ox's default * implementation. The public conversion is omitted because Monocypher does not * reproduce Ox's invalid-point validation. * * @example * ```ts twoslash * // @noErrors * import { Engine } from 'ox' * import { Ed25519 } from 'ox/wasm' * * await Engine.install({ Ed25519: Ed25519.engine() }) * * Ed25519.getPublicKey({ privateKey: '0x...' }) * ``` * * @returns The WASM implementation of part of the `Ed25519` slot. */ export declare function engine(): Promise; export declare namespace engine { /** Every `Ed25519` primitive this module implements. */ type ReturnType = { [key in 'getPublicKey' | 'sign' | 'toMontgomerySecret' | 'verify']-?: NonNullable; }; type ErrorType = internal.MemoryError | Errors.GlobalErrorType; } //# sourceMappingURL=Ed25519.d.ts.map