declare type EventType = string | number; export declare type BaseEvents = Record; export declare class EventEmitter { private readonly events; add(type: E, callback: (...args: Events[E]) => void): this; remove(type: E, callback: (...args: Events[E]) => void): this; removeByType(type: E): this; emit(type: E, ...args: Events[E]): this; listeners(type: E): readonly Function[]; } export {};