UNPKG

477 BTypeScriptView Raw
1/**
2 * Converts a base-64 encoded string to a Uint8Array of bytes.
3 *
4 * @param input The base-64 encoded string
5 *
6 * @see https://tools.ietf.org/html/rfc4648#section-4
7 */
8export declare function fromBase64(input: string): Uint8Array;
9/**
10 * Converts a Uint8Array of binary data to a base-64 encoded string.
11 *
12 * @param input The binary data to encode
13 *
14 * @see https://tools.ietf.org/html/rfc4648#section-4
15 */
16export declare function toBase64(input: Uint8Array): string;