DataURL.ResourceCopyimport { DataURL } from "https://raw.githubusercontent.com/i-xi-dev/bytes.es/4.4.2/deps.ts"; const { Resource } = DataURL;class Resource {private constructor(data: ArrayBuffer, type: string);get type(): string;get data(): ArrayBuffer; toString(): string;toURL(): URL; static create(type: string | MediaType, data: BufferSource): Resource;static from(dataUrl: URL | string): Resource;static fromString(dataUrlStr: string): Resource;static fromURL(dataUrl: URL): Resource;}§Constructors§new Resource(data: ArrayBuffer, type: string) private[src]§Properties§type: string readonly[src]§data: ArrayBuffer readonly[src]§Methods§toString(): string[src]§toURL(): URL[src]§Static Methods§create(type: string | MediaType, data: BufferSource): Resource[src]§from(dataUrl: URL | string): Resource[src]§fromString(dataUrlStr: string): Resource[src]§fromURL(dataUrl: URL): Resource[src]