import { ListenerMiddlewareInstance } from '@reduxjs/toolkit';
import { SyntheticEvent } from 'react';
import { CategoricalChartFunc } from '../chart/types';
import { RechartsRootState } from './store';
type ExternalEventActionPayload<E = SyntheticEvent> = {
    reactEvent: E;
    handler: CategoricalChartFunc<E> | undefined;
};
export declare const externalEventAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<ExternalEventActionPayload<any>, string>;
/**
 * Creates the middleware that throttles external events and calls the chart's event handler props.
 *
 * Each chart store must get its own instance, because the throttling state below belongs to one chart.
 * If it were shared, an event in one chart could cancel the pending event of another chart,
 * or call another chart's handler with this chart's state.
 *
 * @returns a new listener middleware with its own throttling state
 */
export declare function createExternalEventsMiddleware(): ListenerMiddlewareInstance<RechartsRootState>;
export {};
