import { LocalDataFile } from './LocalDataFile'; import { LocalFileSourceBrowser } from '../types'; /** * Represents a data file on the browser platform. */ export declare class LocalDataFileBrowser extends LocalDataFile { /** * Utility function to wrap a file as a [[DataFile]] for this platform. * @param source - The file to wrap */ static fromSource(source: LocalFileSourceBrowser): Promise; /** * Internal representation of the file */ private blob; /** * @param blob - Container of the file */ constructor(blob: Blob | File); /** * The total length, in bytes, of the file this instance represents. */ get byteLength(): Promise; /** * Closes the local file handle for the current platform. After this function is called all subsequent operations * on this file, or any other data sources depending on this file, will fail. */ close(): void; /** * Loads the file into an ArrayBuffer. Optionally a `start` and `end` can be specified to load a part of the file. * @param start - The offset at which the data will start loading * @param end - The offset at which the data will stop loading */ loadData(start?: number, end?: number): Promise; /** * Loads the specified blob into an array buffer. * @param blob - The blob to load */ private loadBlob; }