import { type DataTableV2ColumnThreshold, type DataTableV2RowThreshold } from './threshold-types.js'; import type { DataTableV2RowData } from '../../public.api.js'; /** * @internal * Internal normalized threshold rules. */ export interface DataTableV2ThresholdsNormalizedRule { /** * Text or pill color for the threshold */ color?: string; /** * Background color for the cell */ backgroundColor?: string; /** * Threshold rules array. */ rules: Array<{ /** * Accessor function that, given the rowData returns a value that can be compared against. */ accessor?: (row: TData) => unknown; /** Comparison value of a given rule. */ value?: unknown; /** Simple comparator definition or function for a threshold comparison. */ comparator: ('greater-than' | 'less-than' | 'greater-than-or-equal-to' | 'less-than-or-equal-to' | 'equal-to' | 'not-equal-to') | ((row: TData) => boolean); }>; /** * Optional part for the row highlight types. */ type?: 'pill' | 'highlight'; } /** * Normalizes the simple rules and combined rules into a standard internal * rule set. * @internal */ export declare function normalizeThresholdRules[] | DataTableV2RowThreshold[]>(thresholds: ThresholdRule, fallbackAccessor?: string | ((row: TData) => unknown)): Array>;