import { type DataTableV2ThresholdsNormalizedRule } from './normalize-rules.js'; import { type DataTableV2ColumnThreshold, type DataTableV2RowThreshold } from './threshold-types.js'; import { type TableFeature, type TableOptions } from '../../hooks/useTable/types.js'; import type { DataTableV2RowData } from '../../public.api.js'; /** * Extension interface to extend the tanstack table with row level thresholds . * @public */ export interface DataTableV2ThresholdProps { /** * Configures the thresholds used for the rows highlighting. */ rowThresholds?: DataTableV2RowThreshold[]; } /** * Extension interface to extend the types from the tanstack table options to support row level thresholds. * @internal */ export interface DataTableV2RowThresholdOptions { /** * Defines if there are thresholds configured on the tables instance. */ hasThresholds?: boolean; /** * Normalized row threshold options. */ rowThresholds?: DataTableV2ThresholdsNormalizedRule[]; } /** * Extension interface to extend the types of the columnDefinition from the tanstack table * to support column level thresholds. * @public */ export interface DataTableV2ThresholdColumnDef { /** * Configures the thresholds used for the cell highlighting. */ thresholds?: DataTableV2ColumnThreshold[]; } /** * Extension interface to extend the types of the `Row` from the tanstack table. * @internal */ export interface DataTableV2ThresholdRow { /** * @internal * Get the threshold colors for the row. */ getThresholdColors: () => { color?: string; backgroundColor?: string; } | null; /** * @internal * Get the pill color for the row threshold. */ getThresholdPill: () => string | null; } /** * Extension interface to extend the types of the `Column` from the tanstack table * @internal */ export interface DataTableV2ThresholdColumn { /** * @internal * Returns the normalized threshold rules on a column level. */ _getThresholdRules: () => Array> | null; } /** * @internal * Extension interface to extend the types of the `Cell` from the tanstack table. */ export interface DataTableV2ThresholdCell { /** * @internal * Get the threshold color and backgroundColor for the cell. */ getThresholdColors: () => { color?: string; backgroundColor?: string; }; } /** * @internal * Hook configuring the thresholds feature for the DataTableV2. * */ export declare function useThresholds(props: DataTableV2ThresholdProps, options: TableOptions): void; /** * Feature to handle thresholds to help in row and cell highlighting. * @internal */ export declare const Thresholds: TableFeature;