import type { DataTableV2RowData } from '../../public.api.js'; /** * Threshold configuration that can be applied to highlight something matching the id. * @public */ export type DataTableV2ThresholdRule = { comparator: 'greater-than' | 'less-than' | 'greater-than-or-equal-to' | 'less-than-or-equal-to' | 'equal-to' | 'not-equal-to'; value: number; /** Accessor string or function to pick the value from the rowData that should be compared against. */ accessor?: string | ((row: TData) => number); } | { /** The operator being used to compare the object value with the threshold value. */ comparator: 'equal-to' | 'not-equal-to'; /** The threshold value to compare the object value to. */ value: string; /** Accessor string or function to pick the value from the rowData that should be compared against. */ accessor?: string | ((row: TData) => string); } | { /** Custom comparator function that is called with the row data. */ comparator: (rowData: TData) => boolean; }; /** * Threshold configuration to highlight something matching the id. * @public */ export type DataTableV2SingleColumnThreshold = DataTableV2ThresholdRule & { rules?: never; color?: string; backgroundColor?: string; }; /** * Threshold configuration to highlight something matching the id. * @public */ export type DataTableV2CombinedColumnThresholds = { rules: DataTableV2ThresholdRule[]; color?: string; backgroundColor?: string; }; /** * Threshold configuration that can be applied to highlight something matching the id. * @public */ export type DataTableV2ColumnThreshold = DataTableV2SingleColumnThreshold | DataTableV2CombinedColumnThresholds; /** * Type guard to check if a threshold is a column threshold rule * @internal */ export declare function isDataTableV2ColumnThreshold(threshold: any): threshold is DataTableV2ColumnThreshold; /** * Threshold configuration to highlight something matching the id. * @public */ export type DataTableV2SingleRowThreshold = DataTableV2ThresholdRule & { rules?: never; } & ({ type: 'pill'; color: string; } | { type: 'highlight'; backgroundColor?: string; color?: string; }); /** * Threshold configuration to highlight something matching the id. * @public */ export type DataTableV2CombinedRowThresholds = { rules: DataTableV2ThresholdRule[]; } & ({ type: 'pill'; color: string; } | { type: 'highlight'; backgroundColor?: string; color?: string; }); /** * Threshold configuration that can be applied to highlight something matching the id. * @public */ export type DataTableV2RowThreshold = DataTableV2SingleRowThreshold | DataTableV2CombinedRowThresholds; /** * Type guard to check if a threshold is a row threshold rule * @internal */ export declare function isDataTableV2RowThreshold(threshold: any): threshold is DataTableV2ColumnThreshold;