import type { ContextWithState } from '../../Types';
import type { PlayerEvent } from '../enums/PlayerExports';
import type { PlayerEventBase, PlayerEventCallback } from '../types/Types';
interface EventListenerMap {
    listeners: Map<PlayerEvent, PlayerEventCallback[]>;
}
declare function on({ listeners }: EventListenerMap, eventType: PlayerEvent, callback: PlayerEventCallback): boolean;
declare function off({ listeners }: EventListenerMap, eventType: PlayerEvent, callback: PlayerEventCallback): boolean;
declare function dispatchEvent({ listeners }: EventListenerMap, eventType: PlayerEvent, event: PlayerEventBase): boolean;
export type EventListenerAtom = ReturnType<typeof createEventListenerAtom>;
export declare const createEventListenerAtom: (context: ContextWithState) => import("../../core/state/Types").StateAtom<EventListenerMap, {
    on: typeof on;
    off: typeof off;
    dispatchEvent: typeof dispatchEvent;
}>;
export {};
