import { Dxf, XlsxStyles } from '../core/spreadsheet-model/index.js'; import { INDEXED_COLORS } from '../core/indexed-colors.js'; export { INDEXED_COLORS }; /** The empty style table, returned for a workbook with no (or a malformed) `styles.xml`. */ export declare const EMPTY_XLSX_STYLES: XlsxStyles; /** A workbook theme's colour scheme, slot name → RRGGBB (see `parseTheme`). */ export type ThemePalette = ReadonlyMap; /** * Everything a `` in this workbook can point AT: the theme's scheme * (§18.8.3 `theme`) and the legacy palette (§18.8.27 `indexed`), which the * workbook may replace with one of its own. */ export interface WorkbookColors { readonly theme?: ThemePalette; readonly indexed: ReadonlyArray; } /** * Parse `xl/styles.xml` (§18.8) into the {@link XlsxStyles} table the renderer * consumes: custom number formats, fonts, fills, borders, the cell formats * (`cellXfs` — each indexing font/fill/border/numFmt + optional alignment) and the * differential formats (`dxfs`) conditional formatting applies. Returns * {@link EMPTY_XLSX_STYLES} when the root is absent or malformed. * * @param theme The workbook's theme palette, resolving ``. * Without it those colours are dropped, and a sheet styled from the * theme loses every fill and font colour it has. */ export declare function parseXlsxStyles(data: Uint8Array, theme?: ThemePalette): XlsxStyles; /** * Read one §18.8.14 `` — the differential format a conditional-format rule * applies on match. Exported because the 2009 extension writes its dxf INSIDE * the rule (``) rather than into the workbook's `` table, and * the sheet reader has to resolve it there. * * @param item The `` node, as parsed. * @param colors The workbook palette, resolving theme and indexed colours. * @returns The format; empty when the node states nothing. */ export declare function parseDxf(item: unknown, colors: WorkbookColors): Dxf;