sinch-rtc
Version:
RTC JavaScript/Web SDK
35 lines (34 loc) • 1.03 kB
TypeScript
/**
* Helps to work with Base64 transforms
*/
export declare class Base64Helper {
/**
* Encodes input into Base64 string
* @param v - input value, can be string, array or object
*/
static encode(v: any): string;
/**
* Encodes UTF8 value to Base64 not caring about URL safeness
* @param s - input string to be encoded
*/
static encodeUnsafe(s: string): string;
/**
*
* @param b - Input base64-encoded value as a string representation
* @returns Crypto-JS specific structure of byte array
*/
static decode(b: string): any;
/**
*
* @param b - Input base64-encoded value as a string representation
* @returns Decoded UTF-8 string
*/
static decodeToString(b: string): string;
/**
* Removes padding from Base64 encoded string
* @param u -
*/
static makeURLSafe(u: string): string;
static decodeUrlSafeToUint8Array(base64: string): Uint8Array;
static decodeToUint8Array(base64: string): Uint8Array;
}