import { DefinedName } from '../core/spreadsheet-model/index.js'; /** §18.2.19 `` — one worksheet reference in tab order. */ export interface SheetReference { /** The sheet (tab) display name. */ readonly name: string; /** The workbook-internal sheet id (`@sheetId`); `''` when absent. */ readonly sheetId: string; /** The relationship id (`r:id`) resolving to the sheet's worksheet part. */ readonly relationshipId: string; /** * §18.2.19 `@state` — `hidden` or `veryHidden` when the tab is not shown. * Excel and LibreOffice print only visible sheets. */ readonly hidden?: boolean; } /** The parsed `workbook.xml`: the ordered sheet list, the date epoch and defined names. */ export interface ParsedWorkbook { /** The worksheet references in tab order. */ readonly sheets: ReadonlyArray; /** * ECMA-376 Part 1 §18.2.28 — ``. When true the * serial-to-date conversion uses 1904-01-01 as day 0 instead of the * standard 1899-12-30 epoch (legacy Mac Excel files). */ readonly date1904: boolean; /** §18.2.5 workbook defined names (print areas/titles, named ranges). */ readonly definedNames: ReadonlyArray; } /** * Parse `workbook.xml` into its ordered {@link SheetReference} list plus the date * epoch and {@link ParsedWorkbook.definedNames}. A sheet entry missing a name or * relationship id is skipped; a malformed root yields an empty workbook. */ export declare function parseWorkbook(data: Uint8Array): ParsedWorkbook;