import type { RenderMode } from '../typings/spec/common'; import type { EventType, EventQuery, EventCallback, EventParamsDefinition, IEvent, IEventDispatcher, IComposedEvent, EventParams, EventBubbleLevel } from './interface'; export declare class Event implements IEvent { private _eventDispatcher; private _mode; private _composedEventMap; getComposedEventMap(): Map, { eventType: string; event: IComposedEvent; }>; constructor(eventDispatcher: IEventDispatcher, mode: RenderMode); on(eType: Evt, callback: EventCallback): this; on(eType: Evt, query: EventQuery, callback: EventCallback): this; off(eType: Evt, callback?: EventCallback): this; off(eType: Evt, query: EventQuery, callback: EventCallback): this; emit(eType: Evt, params: EventParamsDefinition[Evt], level?: EventBubbleLevel): this; prevent(eType: Evt, except?: { handler: EventCallback; level: EventBubbleLevel; }): this; allow(eType: Evt): this; release(): void; }