@mindfiredigital/pivothead
Version:
PivotHead is a powerful and flexible library for creating interactive pivot tables in JavaScript applications. It provides a core engine for data manipulation and, in the future, will be compatible with wrappers for React, Vue, Svelte, and Angular, making
26 lines • 829 B
TypeScript
/**
* Streaming File Reader
* Reads large files in chunks for efficient processing
*/
import type { ChunkInfo, StreamingOptions } from '../types/interfaces';
export type { ChunkInfo, StreamingOptions };
export declare class StreamingFileReader {
private static readonly DEFAULT_CHUNK_SIZE;
/**
* Read file in chunks using Streams API
*/
static readFileInChunks(file: File, options?: StreamingOptions): Promise<void>;
/**
* Legacy fallback for browsers without stream() support
*/
private static readFileInChunksLegacy;
/**
* Read blob as text using FileReader
*/
private static readBlobAsText;
/**
* Get optimal chunk size based on file size
*/
static getOptimalChunkSize(fileSize: number): number;
}
//# sourceMappingURL=StreamingFileReader.d.ts.map