/** * Encode bytes to Base32 string * * @remarks * Performance: Uses array.join() instead of string concatenation * to avoid creating intermediate strings in the hot path. * * @param input - Bytes or string to encode * @param withPadding - Whether to include padding (default: true) * * @returns Base32 encoded string */ export declare const base32Encode: (input: string | Uint8Array, withPadding?: boolean) => string; /** * Decode Base32 string to bytes * * @remarks * Security: Case-insensitive decoding per RFC 4648 recommendation. * Performance: Uses Map lookup for O(1) character value retrieval. * Performance: Pre-allocates output array based on input length. * * @param base32 - Base32 string to decode (case-insensitive) * * @throws ({@link InternalError}) - if invalid Base32 character is found * * @returns Decoded bytes */ export declare const base32Decode: (base32: string) => Uint8Array;