import { TimeseriesClosestPoint } from './find-closest-points.js'; import type { ChartUnit } from '../../../../../core/types/chart-unit.js'; import { GroupDataPoint } from '../../../../../core/types/data-point.js'; import { Formatter } from '../../../../../core/types/formatter.js'; import { TooltipItem } from '../../../../../core/types/tooltip.js'; import { WeakMapDatapoints } from '../../../../types/timeseries.js'; type AsyncValuesTooltipItem = TooltipItem & { asyncValues: () => string[]; }; export declare const toTooltipItems: (xPoints: TimeseriesClosestPoint[], formatters: Formatter[], datapointsMap: WeakMapDatapoints, units: ChartUnit[]) => AsyncValuesTooltipItem[]; /** * Returns the items displayed in the tooltip * @param closestPoint - the closest point * @param points - array of all points with same x coordinate of the closest point * @param groupedPoints - grouped points by threshold */ export declare function filterGroupedPoints(closestPoint: TimeseriesClosestPoint, points: TimeseriesClosestPoint[], groupedPoints: GroupDataPoint): TimeseriesClosestPoint[]; /** * Returns only timeframe points or only timestamp points depending on the type (timeframe or timestamp) of the closest point. * @param points - array of all points with same x coordinate of the closest point * @param closestPoint - the closest point */ export declare function filterTimestampsAndTimeframes(points: TimeseriesClosestPoint[], closestPoint: TimeseriesClosestPoint): TimeseriesClosestPoint[]; export {};