import { BytesArray, ImageCreationConfig, ToBytesConfig } from "../sharedTypes"; export default class BlobConverter { protected original: Blob; constructor(original: Blob); toUint8Array(): Promise; toInt8Array(): Promise; toArrayBuffer(): Promise; toImage(config?: ImageCreationConfig): Promise; toCanvas(): Promise; toBytes(): Promise; toDecimalBytes({ isSigned }?: ToBytesConfig): Promise; /** * Returns a base64 string. If you want a dataUrl appended to it, pass {appendDataUrl:true} * In Node will always return plain base64 */ toBase64(config?: { appendDataUrl?: boolean; }): Promise; }