/**
 *  base64.ts
 *
 *  Licensed under the BSD 3-Clause License.
 *    http://opensource.org/licenses/BSD-3-Clause
 *
 *  References:
 *    http://en.wikipedia.org/wiki/Base64
 *
 * @author Dan Kogai (https://github.com/dankogai)
 */
declare const version = "3.3.3";
/**
 * @deprecated use lowercase `version`.
 */
declare const VERSION = "3.3.3";
/**
 * converts a Uint8Array to a Base64 string.
 * @param {Boolean} [rfc4648] URL-and-filename-safe a la RFC4648
 * @returns {String} Base64 string
 */
declare const fromUint8Array: (src: Uint8Array, rfc4648?: boolean) => string;
/**
 * does what `window.btoa` of web browsers does.
 * @param {String} src binary string
 * @returns {String} Base64-encoded string
 */
declare const _btoa: (s: string) => string;
/**
 * @deprecated should have been internal use only.
 * @param {string} src UTF-8 string
 * @returns {string} UTF-16 string
 */
declare const utob: (src: string) => string;
/**
 * converts a UTF-8-encoded string to a Base64 string.
 * @param {Boolean} [rfc4648] if `true` make the result URL-safe
 * @returns {String} Base64 string
 */
declare const encode: (src: string, rfc4648?: boolean) => string;
/**
 * converts a UTF-8-encoded string to URL-safe Base64 RFC4648.
 * @returns {String} Base64 string
 */
declare const encodeURI: (src: string) => string;
/**
 * @deprecated should have been internal use only.
 * @param {string} src UTF-16 string
 * @returns {string} UTF-8 string
 */
declare const btou: (src: string) => string;
/**
 * does what `window.atob` of web browsers does.
 * @param {String} src Base64-encoded string
 * @returns {String} binary string
 */
declare const _atob: (a: string) => string;
/**
 * converts a Base64 string to a UTF-8 string.
 * @param {String} src Base64 string.  Both normal and URL-safe are supported
 * @returns {String} UTF-8 string
 */
declare const decode: (src: string) => string;
/**
 * converts a Base64 string to a Uint8Array.
 */
declare const toUint8Array: (a: string) => Uint8Array;
declare const extendString: () => void;
declare const extendUint8Array: () => void;
declare const extendBuiltins: () => void;
declare const gBase64: {
    version: string;
    VERSION: string;
    atob: (a: string) => string;
    btoa: (s: string) => string;
    fromBase64: (src: string) => string;
    toBase64: (src: string, rfc4648?: boolean) => string;
    encode: (src: string, rfc4648?: boolean) => string;
    encodeURI: (src: string) => string;
    encodeURL: (src: string) => string;
    utob: (src: string) => string;
    btou: (src: string) => string;
    decode: (src: string) => string;
    fromUint8Array: (src: Uint8Array, rfc4648?: boolean) => string;
    toUint8Array: (a: string) => Uint8Array;
    extendString: () => void;
    extendUint8Array: () => void;
    extendBuiltins: () => void;
};
export { version };
export { VERSION };
export { _atob as atob };
export { _btoa as btoa };
export { decode as fromBase64 };
export { encode as toBase64 };
export { utob };
export { encode };
export { encodeURI };
export { encodeURI as encodeURL };
export { btou };
export { decode };
export { fromUint8Array };
export { toUint8Array };
export { extendString };
export { extendUint8Array };
export { extendBuiltins };
export { gBase64 as Base64 };
