/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; import { ABuffer } from "../buffer/ABuffer"; import { ALong } from "../runtime/ALong"; import { FileStorage } from "./FileStorage"; /** * Class ContentLoader helps requesting and loading multiple ranges from a file with a single request to the storage service. */ /** @internal */ export declare class ContentLoader { /** The name of this module */ private static readonly MODULE; /** The storage space of the file */ private _fileStorage; /** The name of the file */ private _fileName; /** The list of requests */ private _requests; /** Has loading started? */ private _loading; /** Has loading stopped? */ private _loaded; /** The list of responses */ private _responses; /** * Create a new content loader. */ constructor(fileStorage: FileStorage, fileName: string); /** * Clear the content loader for reuse. */ clear(): void; /** * Add a request to load a content range. */ requestFilePart(offset: ALong, size: int32): ContentLoader; /** * Get the total size of the data to be loaded. */ getTotalRequestSize(): int32; /** * Print info. */ printInfo(): void; /** * Has all content been loaded? */ isLoaded(): boolean; /** * Has all content been loaded? */ isAvailable(): boolean; /** * Load all content from storage. */ load(): Promise; /** * Get a content range that has been loaded. */ getFilePart(offset: ALong, size: int32): ABuffer; } export {}; //# sourceMappingURL=ContentLoader.d.ts.map