1 |
|
2 | import { EventEmitter } from "events";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export declare class SequentialEventEmitter extends EventEmitter {
|
8 | |
9 |
|
10 |
|
11 | constructor();
|
12 | /**
|
13 | * Emits an event by specifying additional arguments where the last argument is a callback function
|
14 | * @param {string | symbol} event
|
15 | * @param args
|
16 | * @returns {any}
|
17 | */
|
18 | emit(event: string | symbol, ...args: any[]): any;
|
19 | addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
20 | on(event: string | symbol, listener: (...args: any[]) => void): this;
|
21 | prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
22 | prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
23 | removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
24 | removeAllListeners(event?: string | symbol): this;
|
25 | setMaxListeners(n: number): this;
|
26 | getMaxListeners(): number;
|
27 | listenerCount(type: string | symbol): number;
|
28 | once(event: string | symbol, listener: (...args: any[]) => void): this;
|
29 | }
|