@dfinity/utils
Version:
A collection of utilities and constants for NNS/SNS projects.
15 lines (14 loc) • 645 B
TypeScript
/**
* Converts a Uint8Array (binary data) to a base64 encoded string.
*
* @param {Uint8Array} uint8Array - The Uint8Array containing binary data to be encoded.
* @returns {string} - The base64 encoded string representation of the binary data.
*/
export declare const uint8ArrayToBase64: (uint8Array: Uint8Array) => string;
/**
* Converts a base64 encoded string to a Uint8Array (binary data).
*
* @param {string} base64String - The base64 encoded string to be decoded.
* @returns {Uint8Array} - The Uint8Array representation of the decoded binary data.
*/
export declare const base64ToUint8Array: (base64String: string) => Uint8Array;