import type { IntlShape } from 'react-intl'; import type { SeriesActionsTemplate } from '../../../../core/types/series-actions-template.js'; import type { SeriesIdToColorScale } from '../../../context/XYChartColorScales.context.js'; import type { FormatCategory } from '../../../hooks/useFormatCategory.js'; import type { TooltipContent } from '../../../types/state.js'; import { type AxisIdToFormatter, type AxisIdToScaleDomain, type BarSeriesWithDatapoints, type MapDatapoints, type SeriesToMetadata } from '../../../types/xy-chart-internals.js'; type SharedTooltipContext = { seriesToMetadata: SeriesToMetadata; axisIdToFormatter: AxisIdToFormatter; axisIdToScaleDomain: AxisIdToScaleDomain; datapointMetadataMap: MapDatapoints; formatCategory: FormatCategory; intl: IntlShape; allBarSeries: BarSeriesWithDatapoints[]; }; export type SharedTooltipRow = { name: string; color: string; yAxisValue: string; yAxisDuration: string | undefined; actions?: () => SeriesActionsTemplate; }; export type SharedTooltipHeader = { xAxisValue: string; xAxisDuration: string | undefined; label: string | undefined; }; export declare function buildSharedTooltipHeader(preferred: TooltipContent, ctx: SharedTooltipContext): SharedTooltipHeader; export declare function buildSharedTooltipRow(result: TooltipContent, ctx: SharedTooltipContext & { colorScaleMap: SeriesIdToColorScale; }): SharedTooltipRow; export {};