fortea
Version:
some tools for js, save your time for a cup of tea
36 lines (35 loc) • 711 B
TypeScript
/**
*
* base64 encode / decode
* http://www.webtoolkit.info/
*
**/
export declare class Base64 {
private _keyStr;
/**
* public method for encoding
* @param input
* @returns string
*/
encode(input: string): string;
/**
* public method for decoding
* @param input string
* @returns string
*/
decode(input: string): string;
/**
* private method for UTF-8 encoding
* @param text string
* @returns string
*/
private _utf8_encode;
/**
* private method for UTF-8 decoding
* @param utf8text string
* @returns string
*/
private _utf8_decode;
}
declare const base64: Base64;
export default base64;