import { ScaleBand } from 'd3-scale'; import type { Point } from '../../core/types/point.js'; import type { DimensionXYPoint } from '../types/categorical-bar-chart-data.js'; import type { CategoricalValueScales, Layout } from '../types/categorical-bar-chart.js'; /** * Retrieve the closest point in a stacked chart considering thresholds * and hovering the corresponding dimension. * * @param layout - layout mode of the chart * @param mousePosition - mouse coordinate * @param closestDimensionPoints - closest dimension points * @param valueScale - value scale * @param categoryScale - category scale * @returns closest point to the mouse coordinate in a stacked chart */ export declare const findClosestPointInStackedChart: (layout: Layout, mousePosition: Point, closestDimensionPoints: DimensionXYPoint[], valueScale: CategoricalValueScales, categoryScale: ScaleBand) => DimensionXYPoint | undefined;