@kwiz/common
Version:
KWIZ common utilities and helpers for M365 platform
9 lines (8 loc) • 552 B
TypeScript
export declare function blobToBase64(data: Blob): Promise<string>;
/** returns true of the string is a data: with base64 content */
export declare function isBase64ImageData(str: string): boolean;
export declare function toArrayBuffer(base64: string): ArrayBuffer;
export declare function toUint8Array(base64: string): Uint8Array;
export declare function fromArrayBuffer(arraybuffer: ArrayBuffer): string;
export declare function fromUint8Array(uint8Array: Uint8Array): string;
export declare function dataURLtoFile(dataurl: any, filename: any): File;