Urara-Blog/node_modules/.pnpm-store/v3/files/93/4d5407b3c4b35a1b3173c52f2b144df52edcccdda5034a825980bfaec15d29b87c310a8636bb853bf0073ad9dcb570245097807e9211ae3125fd82c7de793b
2022-08-14 01:14:53 +08:00

21 lines
646 B
Text

/**
* Create a Base64-encoded ASCII string from a binary string.
* @NOTE Alias for the `btoa` built-in.
* @param {string} value
*/
export function encode(value: string): string;
/**
* Decode a string from a Base64-encoded value.
* @NOTE Alias for the `atob` built-in.
* @param {string} value
*/
export function decode(value: string): string;
/**
* Create a Base64-encoded ASCII string that's safe for use within URL applications.
* @NOTE This may often be referred to as "base64url" encoding.
* @see https://en.wikipedia.org/wiki/Base64#URL_applications
* @param {string} value
*/
export function base64url(value: string): string;