import type { ScaleBand } from 'd3-scale'; import type { Point } from '../../core/types/point.js'; import type { DimensionXYPoint } from '../types/categorical-bar-chart-data.js'; import type { Layout } from '../types/categorical-bar-chart.js'; export declare const TOOLTIP_DISTANCE_THRESHOLD = 32; /** * Retrieve the closest point in a grouped chart * considering the corresponding category and dimension. * * @param layout - layout mode of the chart * @param mousePosition - mouse coordinate * @param closestDimensionPoints - closest dimension points * @param categoryScale - category scale * @param dimensionScale - dimension scale * * @returns closest point of the mouse coordinate in a grouped chart */ export declare function findClosestPointInGroupedChart(layout: Layout, mousePosition: Point, closestDimensionPoints: DimensionXYPoint[], categoryScale: ScaleBand, dimensionScale: ScaleBand): DimensionXYPoint | undefined;