import type { BindingErrorsType, ErrorRowType, ParsedRow, ResultValidData } from '../../types'; import type { WorkSheet } from 'xlsx'; /** * Raw cell value as emitted by xlsx `sheet_to_json` with `header: 1`. Cells * can be primitives, dates, or `null` for empty intermediate cells. */ export type RawCellValue = string | number | boolean | Date | null | undefined; /** * Array-of-arrays row produced by xlsx `sheet_to_json({ header: 1 })`. */ export type SheetAoaRow = Array; export declare const readXLSXFile: (bStr: string | ArrayBuffer | null | undefined) => Promise; export declare const convertSheetToJson: (sheetData: WorkSheet) => Promise>; export declare const normalizeData: (data: T) => T; export declare const makeCols: (refStr: string) => Promise<{ name: string; key: number; x: number; }[]>; export declare const iError: (column: string, errors: ResultValidData) => { column: string; errors: ResultValidData; }; export declare const mapRows: (sheet: Array, head: Array, cols: Array<{ name: string; key: number; }>) => Array; export declare const bindErrors: (index: number, errors: Array) => BindingErrorsType;