import type { EChartsCoreOption, EChartsType } from "echarts/core";
import type * as React from "react";
import type { BaseCartesianChartModel } from "../../../visualizations/echarts/cartesian/model/types";
import type { TimelineEventsModel } from "../../../visualizations/echarts/cartesian/timeline-events/types";
import type { VisualizationProps } from "../../../visualizations/types";
import type { EChartsEventHandler } from "../../../visualizations/types/echarts";
import type { CardId } from "../../../../metabase-types/api";
export declare const useChartEvents: (chartRef: React.MutableRefObject<EChartsType | undefined>, chartModel: BaseCartesianChartModel, timelineEventsModel: TimelineEventsModel | null, option: EChartsCoreOption, { card, rawSeries, selectedTimelineEventIds, settings, visualizationIsClickable, onChangeCardAndRun, onVisualizationClick, onHoverChange, onOpenTimelines, onSelectTimelineEvents, onDeselectTimelineEvents, hovered, clicked, metadata, isDashboard, }: VisualizationProps) => {
    onSelectSeries: (event: React.MouseEvent, seriesIndex: number) => void;
    onOpenQuestion: (cardId?: CardId) => void;
    eventHandlers: EChartsEventHandler[];
};
