type CallbackFunction = (eventPayload: T) => void; declare class EventEmitter { _events: Record; constructor(); on(event: string, callback: CallbackFunction): void; off(event: string, callback: CallbackFunction): void; emit(event: string, eventPayload?: unknown): void; hasListener(event: string): boolean; } export = EventEmitter;