import { Worksheet } from 'exceljs'; type CellRange = { row: [number, number]; column: [number, number]; [key: string]: unknown; }; export type FortuneFormat = { textColor?: string; cellColor?: string; bold?: boolean; italic?: boolean; underline?: boolean; strikethrough?: boolean; }; type FortuneRule = { type: string; cellrange: CellRange[]; format?: FortuneFormat; conditionName: string; conditionValue?: string[]; }; type Sheet = { luckysheet_conditionformat_save?: FortuneRule[]; [key: string]: unknown; }; export type PendingDuplicateRule = { ref: string; format: FortuneFormat; priority: number; type: 'duplicateValues' | 'uniqueValues'; }; export type CfExportResult = { nextPriority: number; pendingDuplicateValues: PendingDuplicateRule[]; }; /** Convert any CSS color string to an 8-char ARGB hex (e.g. "FFFF0000"). Returns null if unparseable. */ export declare function colorToArgb(color: string): string | null; /** * Writes all luckysheet_conditionformat_save rules from `sheet` into the * ExcelJS worksheet. * * Returns the next available priority integer and any `duplicateValue` rules * that ExcelJS cannot render — those must be injected later via * `patchXlsxCf` in the post-processing step. */ export declare function exportConditionalFormatting(ws: Worksheet, sheet: Sheet, startPriority: number): CfExportResult; export {};