import { CartesianChartProps } from '../../internal/components/cartesian-chart/interfaces'; import { ChartSeriesDetailItem } from '../../internal/components/chart-series-details'; import { AreaChartProps } from '../interfaces'; import { ChartModel } from '../model'; export interface HighlightDetails { isPopoverPinned: boolean; highlightIndex: number; formattedX: string; seriesTitle: string; formattedY: number | string; seriesDetails: readonly ChartSeriesDetailItem[]; totalDetails: readonly ChartSeriesDetailItem[]; pointDetails: null | ChartSeriesDetailItem; activeLabel: string; } export default function useHighlightDetails({ model, xTickFormatter, yTickFormatter, detailTotalFormatter, detailTotalLabel }: { model: ChartModel; xTickFormatter?: CartesianChartProps.TickFormatter; yTickFormatter?: CartesianChartProps.TickFormatter; detailTotalFormatter?: CartesianChartProps.TickFormatter; detailTotalLabel?: string; }): null | HighlightDetails;