import type { EChartsCoreOption, EChartsType } from "echarts/core";
import type * as React from "react";
import type { BaseCartesianChartModel } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/echarts/cartesian/model/types";
import type { TimelineEventsModel } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/echarts/cartesian/timeline-events/types";
import type { VisualizationProps } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/types";
import type { EChartsEventHandler } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/types/echarts";
import type { CardId } from "@metabase/embedding-sdk-react/dist/frontend/src/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[];
};
