declare const MIN_PASSPHRASE_ENTROPY_BYTES = 2; declare const MAX_PASSPHRASE_ENTROPY_BYTES = 1024; declare const WORDLIST: string[]; /** * Convert a Uint8Array into a passphrase. * @param {Uint8Array} bytes The bytes to convert to a passphrase. * @returns {string[]} The passphrase as an array of words. * @throws {Error} If the bytes argument is not a Uint8Array. * @throws {Error} If the word index calculated from the byte array is invalid. */ declare function bytesToPassphrase(bytes: Uint8Array): string[]; /** * Generates a random passphrase with the specified underlying byte length. * @param {number} byteLen The number of random bytes to generate. Must be an even number between 2 and 1024. * @returns {string[]} A passphrase as an array of words. * @throws {Error} If the byteLen argument is not a valid even number between 2 and 1024. */ declare function generatePassphrase(byteLen: number): string[]; /** * Convert a passphrase into a Uint8Array. * @param {string | string[]} passphrase The passphrase to convert to bytes as a space delimited string or Array. * @returns {Uint8Array} The byte representation of the passphrase. * @throws {Error} If the passphrase argument is not a string or an array of strings. * @throws {Error} If a word in the passphrase is not found in the wordlist. */ declare function passphraseToBytes(passphrase: string | string[]): Uint8Array; export { MAX_PASSPHRASE_ENTROPY_BYTES, MIN_PASSPHRASE_ENTROPY_BYTES, WORDLIST, bytesToPassphrase, generatePassphrase, passphraseToBytes };