import type { Point } from '../../core/types/point.js'; import type { DimensionXYPoint } from '../types/categorical-bar-chart-data.js'; import type { GroupMode, Layout } from '../types/categorical-bar-chart.js'; /** * Retrieve the dimension X/Y point based on the * closest category considering the current mouse position, layer and group mode * * @param layout - layout mode of the chart * @param groupMode - group mode of the chart * @param mousePosition - mouse coordinate * @returns closest point and closest points of the mouse coordinate */ export declare const useClosestDimensionPoint: (layout: Layout, groupMode?: GroupMode, mousePosition?: Point) => { closestDimensionPoint: DimensionXYPoint; closestDimensionPoints: DimensionXYPoint[]; };