/** * @fileoverview Entry point for @iacobus/bip39. * Exports core functions for mnemonic sentence generation, validation, conversions back to initial entropy, * and seed creation. * @module * @author Jacob V. B. Haap * @license MIT */ /** * Verify that a mnemonic sentence is valid. * @example * const ms: string = "draw kite fog system improve calm smoke economy cake head figure drastic"; * const verified = verifyMnemonic(english, ms); // true */ export declare function verifyMnemonic(wordlist: string[], ms: string): boolean; /** * Generate a mnemonic sentence with cryptographically secure entropy obtained from {@link randomBytes}, * based on a provided wordlist, at a length of `msLen` words. * @example * const ms = generateMnemonic(english, 12); // word breeze hope phrase year road nature copy face forest tumble coin */ export declare function generateMnemonic(wordlist: string[], msLen: number): string; /** * Generate a mnemonic sentence from initial entropy. * When the optional `ext` parameter is *true*, any initial entropy length will be accepted, and padding will * be applied internally to meet the requirements for mnemonic sentence generation. * @example * const ent: Uint8Array = Uint8Array.from([66, 111, 101, 105, 110, 103, 32, 65, 51, 50, 49, 32, 77, 65, 88, 33]); * const ms = toMnemonic(english, ent); // draw kite fog system improve calm smoke economy cake head figure drastic */ export declare function toMnemonic(wordlist: string[], ent: Uint8Array, ext?: boolean): string; /** * Convert a mnemonic sentence back to the initial entropy from which it was generated. * @example * const ms: string = "draw kite fog system improve calm smoke economy cake head figure drastic"; * const ent = fromMnemonic(english, ms); // Uint8Array(16) [66, 111, 101, 105, 110, 103, 32, 65, 51, 50, 49, 32, 77, 65, 88, 33] */ export declare function fromMnemonic(wordlist: string[], ms: string): Uint8Array; /** * Create a 64 byte seed from a mnemonic sentence + optional passphrase (synchronous). * @example * const ms: string = "draw kite fog system improve calm smoke economy cake head figure drastic"; * const seed = createSeed(english, ms); // Uint8Array(64) [253, 45, 107, 175...] */ export declare function createSeed(wordlist: string[], ms: string, passphrase?: string): Uint8Array; /** * Create a 64 byte seed from a mnemonic sentence + optional passphrase (asynchronous). * @example * const ms: string = "draw kite fog system improve calm smoke economy cake head figure drastic"; * const seed = await createSeedAsync(english, ms); // Uint8Array(64) [253, 45, 107, 175...] */ export declare function createSeedAsync(wordlist: string[], ms: string, passphrase?: string): Promise; //# sourceMappingURL=mod.d.ts.map