export type EventHandler = (event?: any) => void; export type WildCardEventHandler = (type: string, event?: any) => void; export declare class EventEmitter { private handlers; on(type: "*", handler: WildCardEventHandler): void; on(type: string, handler: EventHandler): void; off(type: "*", handler: WildCardEventHandler): void; off(type: string, handler: EventHandler): void; emit(type: string, event?: any): void; once(type: string, handler: EventHandler): void; }