import { XlsxStyles } from '../../core/spreadsheet-model/index.js'; interface BiffRec { readonly type: number; readonly data: Uint8Array; } /** * Build a palette-index → `"RRGGBB"` resolver from the default 56-colour palette * plus any `PALETTE` override. Six hex digits, not the eight an xlsx `rgb` * attribute carries: by the time styles are parsed the alpha is gone, and a * colour that kept it was read from its first six characters — silver `C0C0C0` * reaching the page as the pink `FFC0C0`. * `0x7FFF` / 64 / 65 are automatic or system colours → `undefined` (the renderer * default). Exported so the conditional-format reader (XLS-13) resolves its dxf * colours the same way. * * @param records The workbook-globals records (scanned for a `PALETTE` override). * @returns A function mapping a colour index (icv) to its hex, or `undefined`. */ export declare function buildBiffPalette(records: ReadonlyArray): (icv: number) => string | undefined; /** * Read a `.xls` workbook globals' FONT / FORMAT / PALETTE / XF records (XLS-4) * into the shared `XlsxStyles` model the OOXML path uses. BIFF packs each XF's * fill and border inline and stores colours as palette indices; these are * resolved through {@link buildBiffPalette} and de-duplicated into the model's * shared fill/border arrays. * * @param records The workbook-globals record stream. * @returns The style table (numFmts, fonts, fills, borders, cellXfs). */ export declare function parseBiffStyles(records: ReadonlyArray): XlsxStyles; export {};