import { Workbook } from './workbook'; import type { ParseResult } from '../../treb-parser/src/index'; import { Parser } from '../../treb-parser/src/index'; import type { RangeType, AddressType, HyperlinkType } from './address-type'; import { type ImportedSheetData, type CellParseResult, type IArea } from '../../treb-base-types/src/index'; import type { Sheet } from './workbook-sheet'; import { ZipWrapper } from './zip-wrapper'; import type { ConditionalFormat } from '../../treb-data-model/src/index'; import * as OOXML from 'ooxml-types'; interface SharedFormula { row: number; column: number; formula: string; parse_result: ParseResult; } interface SharedFormulaMap { [index: string]: SharedFormula; } export declare class Importer { parser: Parser; workbook?: Workbook; zip?: ZipWrapper; Init(data: ArrayBuffer): void; /** FIXME: accessor */ SheetCount(): number; ParseCell(sheet: Sheet, element: OOXML.Cell, // CellElementType, shared_formulae: SharedFormulaMap, arrays: RangeType[], dynamic_arrays: RangeType[], merges: RangeType[], links: HyperlinkType[]): CellParseResult | undefined; AddressToArea(address: RangeType | AddressType): IArea; ParseConditionalFormat(address: RangeType | AddressType, rule: OOXML.CfRule, // ConditionalFormatRule, extensions?: OOXML.X14ConditionalFormatting[]): ConditionalFormat | ConditionalFormat[] | undefined; GetSheet(index?: number): ImportedSheetData; } export {};