export declare function asciiDecode(data: Uint8Array, maxAllowed?: number): string; export declare function asciiEncode(str: string, maxAllowed?: number): Uint8Array; export declare function utf8Encode(str: string): Uint8Array; export declare function utf8Decode(bytes: Uint8Array): string; export declare function toUint8Array(data: any): Uint8Array; export declare function hexEncode(data: Uint8Array, begin?: number, end?: number): string; export declare function hexDecode(hex: string): Uint8Array; /** * Encodes byte array to Base32 String. * * @param {Uint8Array} bytes - bytes to encode. * @return {string} */ export declare function base32Encode(thing: any): string; /** * Decodes the given Base32 String to a raw byte array. * * @param {string|Uint8Array|DataBuffer} base32-encoded data * @return {Uint8Array} decoded data */ export declare function base32Decode(base32: string): Uint8Array;