1 | /**
|
2 | * Create a Base64-encoded ASCII string from a binary string.
|
3 | * @NOTE Alias for the `btoa` built-in.
|
4 | * @param {string} value
|
5 | */
|
6 | export function encode(value: string): string;
|
7 |
|
8 | /**
|
9 | * Decode a string from a Base64-encoded value.
|
10 | * @NOTE Alias for the `atob` built-in.
|
11 | * @param {string} value
|
12 | */
|
13 | export function decode(value: string): string;
|
14 |
|
15 | /**
|
16 | * Create a Base64-encoded ASCII string that's safe for use within URL applications.
|
17 | * @NOTE This may often be referred to as "base64url" encoding.
|
18 | * @see https://en.wikipedia.org/wiki/Base64#URL_applications
|
19 | * @param {string} value
|
20 | */
|
21 | export function base64url(value: string): string;
|