@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
51 lines • 1.4 kB
TypeScript
/**
* WebAssembly CSV Processor
*
* High-performance CSV processing using WebAssembly for large datasets
*/
import type { WasmProcessOptions, WasmProcessResult } from '../types/interfaces';
export type { WasmProcessOptions, WasmProcessResult };
export declare class WasmCSVProcessor {
private wasmLoader;
private isInitialized;
constructor();
/**
* Initialize WASM module
*/
initialize(): Promise<boolean>;
/**
* Check if WASM is ready
*/
isReady(): boolean;
/**
* Process CSV data using WASM
*/
processCSV(csvData: string, options?: WasmProcessOptions): Promise<WasmProcessResult>;
/**
* Parse CSV into rows (JavaScript implementation)
* TODO: Move this logic to WASM for better performance
*/
private parseCSVRows;
/**
* Convert rows to objects
*/
private rowsToObjects;
/**
* Process CSV file using WASM
*/
processFile(file: File, options?: WasmProcessOptions): Promise<WasmProcessResult>;
/**
* Estimate memory usage for a dataset
*/
estimateMemory(rowCount: number, colCount: number): number;
/**
* Get WASM version
*/
getVersion(): string;
/**
* Cleanup and release resources
*/
cleanup(): void;
}
export declare const getWasmCSVProcessor: () => WasmCSVProcessor;
//# sourceMappingURL=WasmCSVProcessor.d.ts.map