import type { SpreadsheetImportWorkbookMetadata } from './work-spreadsheet-import-worker-protocol'; export declare const PLAIN_XLSX_COLUMN_BITS = 14; export declare const PLAIN_XLSX_COLUMN_MASK: number; export declare const PLAIN_XLSX_CELL_CHUNK_SIZE = 4096; export declare const PLAIN_XLSX_ROW_CHUNK_SIZE = 256; export declare const PLAIN_XLSX_CELL_NUMBER = 0; export declare const PLAIN_XLSX_CELL_BOOLEAN = 1; export declare const PLAIN_XLSX_CELL_ERROR = 2; export declare const PLAIN_XLSX_CELL_TEXT = 3; export interface PlainXlsxPackageParts { contentTypes: string; packagePaths: readonly string[]; rootRelationships: string; workbook: string; workbookRelationships: string; } export interface PlainXlsxWorkbookSheet { name: string; partPath: string; } export interface PlainXlsxWorkbookPlan { sheets: PlainXlsxWorkbookSheet[]; workbook: SpreadsheetImportWorkbookMetadata; } export interface PlainXlsxCellChunk { coordinates: Uint32Array; kinds: Uint8Array; numericValues: Float64Array; startRow: number; textValues: string[]; } export interface PlainXlsxWorksheetResult { columnCount: number; populatedCellCount: number; properties: Record; rowCount: number; } export interface PlainXlsxRangeExtent { columnCount: number; rowCount: number; } /** * Authenticates the deliberately small OOXML subset handled by the fast * worksheet parser. Any package part or workbook construct outside this * closed set returns null and leaves SheetJS as the authority. */ export declare function createPlainXlsxWorkbookPlan(parts: PlainXlsxPackageParts): PlainXlsxWorkbookPlan | null; /** * Parses primitive dense cells with a low-allocation cursor. Row chunks may be * emitted provisionally; callers must use them only when the final result is * non-null because a later unsupported element invalidates the whole sheet. */ export declare function streamPlainXlsxWorksheet(source: string, visit: (chunk: PlainXlsxCellChunk) => void, start?: (extent: PlainXlsxRangeExtent) => void): PlainXlsxWorksheetResult | null; export declare function plainXlsxRangeExtent(reference: string): PlainXlsxRangeExtent | null;