1 |
|
2 | import { EventEmitter as NativeEmitter } from "events";
|
3 | export declare class EventEmitter extends NativeEmitter {
|
4 | on(event: string | symbol, listener: (...args: any) => void): this;
|
5 | off(event: string | symbol, listener: (...args: any) => void): this;
|
6 | once(event: string | symbol, listener: (...args: any) => void): this;
|
7 | addListener(event: string | symbol, listener: (...args: any) => void): this;
|
8 | removeListener(event: string | symbol, listener: (...args: any) => void): this;
|
9 | private ensureListenerCount;
|
10 | }
|