import type { OfficeTheme } from '../../shared/ooxml/theme'; import type { SpreadsheetConditionalFormattingRule, SpreadsheetConditionalValue } from '../spreadsheet/semantics/types'; import { type StyleBook } from './xlsxCellFormatting'; /** 流式解析期间可追加阈值和颜色的条件格式规则。 */ export type MutableXlsxConditionalRule = SpreadsheetConditionalFormattingRule & { /** 流式读取中持续追加的阈值或公式。 */ values: SpreadsheetConditionalValue[]; /** 流式读取中持续追加的色阶颜色。 */ colors: string[]; }; /** 将 sqref 中的多个 A1 范围转换为标准范围数组。 */ export declare function parseConditionalRanges(value: string | undefined): import("./xlsxCellFormatting").CellRange[]; /** 从 cfRule 属性建立可由 DOM 或流式读取继续补全的规则。 */ export declare function createXlsxConditionalRule(attributes: ReadonlyMap, ranges: ReturnType, styleBook: StyleBook, fallbackId: string): MutableXlsxConditionalRule; /** 解析物化工作表中的全部条件格式规则。 */ export declare function parseMaterializedXlsxConditionalFormatting(sheetNode: Element, styleBook: StyleBook, theme: OfficeTheme): SpreadsheetConditionalFormattingRule[];