import { default as ConditionalFormattingColumn } from '../types/ConditionalFormattingColumn'; import { default as ConditionalFormattingRule } from '../types/ConditionalFormattingRule'; import { default as ConditionalFormattingRuleKind } from '../types/ConditionalFormattingRuleKind'; /** * Re-kinds a rule when the user switches tabs in the editor, keeping whatever * the target kind can still use. * * Preserving `id` is what makes an edit an edit: the sheet matches the draft * back to the original by id, so a regenerated one would append a duplicate * rule instead of updating the one being edited. * * `columns` is what makes "can still use" more than a guess: the Farbverlauf tab * offers only number and date columns, so carrying a text column across would * leave its dropdown blank while the rule still pointed at that column — and an * applied gradient on an unorderable column silently never paints. */ export default function convertConditionalFormattingRule(rule: ConditionalFormattingRule, kind: ConditionalFormattingRuleKind, columns: ConditionalFormattingColumn[]): ConditionalFormattingRule;