import type { FormatRule, FormatTarget } from '../conditional-formatting/index.js'; import type { XlsxColor, XlsxStyle } from './styles.types.js'; export interface XlsxFormatColors { scaleFrom?: XlsxColor; scaleTo?: XlsxColor; bar?: XlsxColor; highlightFill?: XlsxColor; highlightText?: XlsxColor; } export declare const DEFAULT_FORMAT_COLORS: { readonly scaleFrom: "#FFFFFF"; readonly scaleTo: "#3B82F6"; readonly bar: "#638EC6"; readonly highlightFill: "#FFEB9C"; readonly highlightText: "#9C6500"; }; export type XlsxCfRule = { kind: 'colorScale'; sqref: string; stops: string[]; bounds: string; } | { kind: 'dataBar'; sqref: string; color: string; bounds: string; } | { kind: 'values'; sqref: string; dxfId: number; unique: boolean; } | { kind: 'top10'; sqref: string; dxfId: number; rank: number; bottom: boolean; }; export declare function toArgb(color: string | undefined, fallback: XlsxColor): string; export interface XlsxFormatContext { letterOf: (columnId: string) => string | undefined; columnIdsOf: (target: FormatTarget) => string[]; rowCount: number; colors: Required; addDxf: (style: XlsxStyle) => number; } export declare function conditionalFormatXml(rules: readonly XlsxCfRule[]): string; export declare function xlsxFormatRules(rules: readonly FormatRule[], context: XlsxFormatContext): XlsxCfRule[];