type EventHandler = (...args: any[]) => void;
export declare class EventTarget {
    private events;
    on(type: string, handler: EventHandler): this;
    off(type: string, handler?: EventHandler): this;
    fire(type: string, ...args: any[]): this;
    once(type: string, handler: EventHandler): this;
    removeAllListeners(): this;
    eventNames(): string[];
    listenerCount(type: string): number;
}
export {};
