export declare type Bit = 0 | 1; /** * Get the checksum for entropy. * * @param {Uint8Array} entropy * @return {Bit[]} */ export declare const getChecksum: (entropy: Uint8Array) => Bit[]; /** * Generate a mnemonic phrase from `size` bits. * * @param {number} size * @return string */ export declare const generateMnemonic: (size: number) => string; /** * Get a mnemonic phrase from pre-generated entropy. Note that the entropy should be sufficiently random in order for * the mnemonic phrase to be secure. * * @param {Uint8Array} entropy * @return {string} */ export declare const entropyToMnemonic: (entropy: Uint8Array) => string; /** * Derive a seed from a mnemonic phrase. This does not validate if a mnemonic phrase is valid. * * @param {string} mnemonic * @param {string} [passphrase] * @return {Uint8Array} */ export declare const mnemonicToSeed: (mnemonic: string, passphrase?: string | undefined) => Uint8Array; /** * Get the initial entropy from a mnemonic phrase. Throws an error if the mnemonic phrase is invalid. * * @param {string} mnemonic * @return {Uint8Array} */ export declare const mnemonicToEntropy: (mnemonic: string) => Uint8Array; /** * Check if a mnemonic phrase is valid or not. * * @param {string} mnemonic * @return {boolean} */ export declare const isValidMnemonic: (mnemonic: string) => boolean; /** * Return a mnemonic word from a sequence of 11 bits. * * @param {Bit[]} bits * @return {string} */ export declare const getMnemonicWord: (bits: Bit[]) => string; /** * Get a bit array from a Uint8Array. * * @param {Uint8Array} buffer * @return {Bit[]} */ export declare const bufferToBits: (buffer: Uint8Array) => Bit[]; /** * Get a Uint8Array from a bit array. * * @param {Uint8Array} bits * @return {Uint8Array} */ export declare const bitsToBuffer: (bits: Bit[]) => Uint8Array; /** * Chunk an array to an array of arrays for every `size` items. * * @param {T[]} array * @param {number} size * @return {T[][]} * @template T */ export declare const chunk: (array: T[], size: number) => T[][];