/** * Converts a string into a Uint8Array. * * This function takes a string input and uses the `Uint8Array` API to encode it into a * Uint8Array, which is suitable for binary operations like encryption. * @param {string} str - The string to be converted into a Uint8Array. * @returns {Uint8Array} - The encoded Uint8Array representation of the input string. */ declare function stringToUint8Array(str: string): Uint8Array; /** * Generates a 32-byte key by hashing the input string. * * This function uses the SHAKE256 hash function to generate a 128-bit (32-byte) key * from the given input string. SHAKE256 is a cryptographic hash function that produces * variable-length output. * @param {string} input - The input string to be hashed into a 32-byte key. * @returns {string} - A 32-byte hash of the input string, suitable for use as an encryption key. */ declare function generate32ByteKey(input: string): string; /** * Generates a 12-byte nonce by hashing the input string. * * This function uses the SHAKE256 hash function to generate a 48-bit (12-byte) nonce * from the given input string. The nonce is used as an initialization vector in encryption. * @param {string} input - The input string to be hashed into a 12-byte nonce. * @returns {string} - A 12-byte hash of the input string, suitable for use as a nonce. */ declare function generate12ByteNonce(input: string): string; export { generate12ByteNonce, generate32ByteKey, stringToUint8Array };