import type { IconTheme } from './theme'; export interface ValueRange { minValue?: number; maxValue?: number; } export declare type ValueRanges = Record; export interface MappingResult extends ValueRange { icon?: string; fill: string; isCompare?: boolean; } export declare type MappingFunction = (fieldValue: number | string, data: Record) => MappingResult; /** * One field can hold a condition */ export interface Condition { field: string | RegExp; mapping: MappingFunction; } export declare type IconPosition = 'left' | 'right'; export interface IconCondition extends Condition { position?: IconPosition; } export interface Conditions { text?: Condition[]; background?: Condition[]; interval?: Condition[]; icon?: IconCondition[]; } export declare type IconCfg = Pick & Pick;