UNPKG

@kwiz/common

Version:

KWIZ common utilities and helpers for M365 platform

10 lines (9 loc) 642 B
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; export declare function buffersToArrayBuffer(buffer: Buffer[] | Uint8Array): ArrayBuffer;