import type { FilehandleOptions, GenericFilehandle, ReadFileOptions, ReadFileTextOptions, Stats } from './filehandle.ts'; /** * Blob of binary data fetched from a local file (with FileReader). * * Adapted by Robert Buels and Garrett Stevens from the BlobFetchable object in * the Dalliance Genome Explorer, which is copyright Thomas Down 2006-2011. */ export default class BlobFile implements GenericFilehandle { /** * Declared, and only ever undefined: bytes handed to the page have no address * anyone could go and look at. Spelled out rather than left off, because an * optional interface member is not inherited by the class implementing it — * omitted, `blobFile.source` is a type error instead of the straight "none" * the field exists to give. See {@link GenericFilehandle.source}. */ readonly source?: undefined; private blob; constructor(blob: Blob); read(length: number, position?: number, opts?: FilehandleOptions): Promise>; readFile(options?: ReadFileOptions): Promise>; readFile(options: ReadFileTextOptions): Promise; stat(): Promise; close(): Promise; }