@coolwallet/kas
Version:
19 lines (18 loc) • 480 B
TypeScript
/**
* Encodes the given array of 5-bit integers as a base32-encoded string.
*
* @static
* @param {Uint8Array} data Array of integers between 0 and 31 inclusive.
* @returns {string}
* @throws {Error}
*/
export declare function encode(data: Uint8Array): string;
/**
* Decodes the given base32-encoded string into an array of 5-bit integers.
*
* @static
* @returns {Uint8Array}
* @throws {Error}
* @param str
*/
export declare function decode(str: string): Uint8Array;