import type { ScaleTime } from 'd3-scale'; import { ColorToken } from '../../../../../core/types/color-palette.js'; import { YAxisScales } from '../../../../types/state.js'; import { WeakMapDatapoints } from '../../../../types/timeseries.js'; import { TimeseriesDataPointAllTypes } from '../../../displays/shared/types.js'; export type TimeseriesClosestPoint = { id: string; x: number; y: number; datapoint: TimeseriesDataPointAllTypes; color: ColorToken; }; export declare const getClosestPoint: (xPoints: TimeseriesClosestPoint[], mouseY?: number) => TimeseriesClosestPoint; /** * Returns the closest points sorted by proximity given a series and mouse * coordinates within the same X coordinate as the closest point. */ export declare const findClosestPoints: (mouseX: number, datapoints: TimeseriesDataPointAllTypes[], xAxisScale: ScaleTime, yAxis: YAxisScales, datapointsMap: WeakMapDatapoints) => TimeseriesClosestPoint[]; /** * Filters the data points that would fall outside the charts, but inside the overlays area. */ export declare const filterOutOfBounds: (overlaysWidth: number, overlaysHeight: number) => (datapoint: TimeseriesClosestPoint) => boolean;