import { EventEmitter2, OnEvent as RawOnEvent } from '@nestjs/event-emitter'; import type { Event, EventPayload } from './def'; export declare class EventEmitter { private readonly emitter; constructor(emitter: EventEmitter2); emit(event: E, payload: EventPayload): boolean; emitAsync(event: E, payload: EventPayload): Promise; on(event: E, handler: (payload: EventPayload) => void): EventEmitter2 | import("eventemitter2").Listener; once(event: E, handler: (payload: EventPayload) => void): EventEmitter2 | import("eventemitter2").Listener; } export declare const OnEvent: (event: Event, opts?: Parameters[1]) => MethodDecorator; export declare class EventModule { } export { Event, EventPayload }; //# sourceMappingURL=index.d.ts.map