/// <reference types="react" />
import { ScalePoint, ScaleLinear, ScaleTime, ScaleBand } from '@visx/vendor/d3-scale';
import { DataType } from '../../../../shared-logic/src/Field/types';
import { ChartType } from '../../Legend/types';
import { DataItem } from '../../../../shared-logic/src/ChartsV2/types';
export declare type TooltipData = {
    [keyId: string]: DataItem;
};
export interface TooltipDataReturn {
    lineLeft: number;
    tooltipData: TooltipData | null;
}
interface getTooltipDataArgs {
    data: Array<{
        [keyId: string]: DataItem;
    }>;
    event: React.MouseEvent<SVGElement>;
    margin: {
        top: number;
        right: number;
        bottom: number;
        left: number;
    };
    xScaleKey: string;
    xScaleDataType: DataType;
    xScale: ScaleBand<number> | ScaleBand<string> | ScaleBand<Date> | ScaleBand<boolean> | ScaleTime<number, number> | ScaleLinear<number, number> | ScalePoint<string> | ScalePoint<boolean>;
    xOrdering: 'asc' | 'desc' | null;
    chartType: ChartType;
}
export declare const getTooltipData: ({ data, event, margin, xScaleKey, xScaleDataType, xScale, xOrdering, chartType, }: getTooltipDataArgs) => TooltipDataReturn | undefined;
export declare function buildComboTooltipData(barTooltipData: TooltipData | null | undefined, lineTooltipData: TooltipData | null | undefined, xScaleKey: string): TooltipData | undefined;
export {};
