smartstring/dist/smartstring.base64.d.ts

29 lines
710 B
TypeScript
Raw Permalink Normal View History

2016-10-31 23:22:38 +00:00
/**
* the type for base 64
*/
export declare type TBase64Input = 'string' | 'base64' | 'base64uri';
/**
* handle base64 strings
*/
export declare class Base64 {
private refString;
constructor(inputStringArg: any, typeArg: TBase64Input);
/**
* the simple string (unencoded)
*/
readonly simpleString: string;
/**
* the base64 encoded version of the original string
*/
readonly base64String: any;
/**
* the base64uri encoded version of the original string
*/
2016-11-02 21:55:17 +00:00
readonly base64UriString: any;
2016-10-31 23:22:38 +00:00
}
export declare let base64: {
encode: (stringArg: string) => any;
encodeUri: (stringArg: string) => any;
decode: (stringArg: string) => any;
};