UNPKG

433 BTypeScriptView Raw
1/**
2 * Converts a base-64 encoded string to a Uint8Array of bytes using Node.JS's
3 * `buffer` module.
4 *
5 * @param input The base-64 encoded string
6 */
7export declare function fromBase64(input: string): Uint8Array;
8/**
9 * Converts a Uint8Array of binary data to a base-64 encoded string using
10 * Node.JS's `buffer` module.
11 *
12 * @param input The binary data to encode
13 */
14export declare function toBase64(input: Uint8Array): string;