declare class EventEmit { eventMap: Record>; $on(eventName: string, handler: Function): this | undefined; $emit(eventName: string, ...data: any): this; $once(eventName: string, handler: Function): this | undefined; $off(eventName: string, handler?: Function): this | undefined; clear(): void; } export default EventEmit;