UNPKG

javascript-binary-converter

Version:

A utility package to quickly handle and convert various Javascript binary objects

10 lines (9 loc) 471 B
import { BlobCreationConfig, BytesArray, DecimalBytesArray, ImageCreationConfig } from "../sharedTypes"; export declare abstract class BaseBytesConverter { protected original: BytesArray | DecimalBytesArray; constructor(original: BytesArray | DecimalBytesArray); abstract toUint8Array(): Uint8Array; toText(): string; toBlob(config?: BlobCreationConfig): Promise<Blob>; toImage(config?: ImageCreationConfig): Promise<HTMLImageElement>; }