@rockcarver/frodo-lib
Version:
A library to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.
41 lines • 1.29 kB
TypeScript
export type Base64 = {
isBase64Encoded(input: any): boolean;
encodeBase64(input: string, padding?: boolean): string;
decodeBase64(input: string): string;
decodeBase64Url(input: string): string;
encodeBase64Url(input: string): string;
};
declare const _default: () => Base64;
export default _default;
/**
* Is input Base64-encoded
* @param {String} input
* @returns {boolean} true if input is Base64-encoded, false otherwise
*/
export declare function isBase64Encoded(input: any): boolean;
/**
* Base64-encode a string
* @param {string} input String to base64-encode
* @param {boolean} padding add padding
* @returns {string} Base64-encoded input string
*/
export declare function encode(input: string, padding?: boolean): string;
/**
* Base64-decode a string
* @param {string} input
* @returns {string} Base64-decoded input string
*/
export declare function decode(input: string): string;
/**
* Decode Base64URL
* @param {*} input the string to decode
* @returns {String} the decoded string.
*/
export declare const decodeBase64Url: (input: any) => string;
/**
* Encode Base65URL
* @param {*} input the string to encode
* @returns {String} the encoded string.
*/
export declare const encodeBase64Url: any;
//# sourceMappingURL=Base64Utils.d.ts.map