UNPKG

524 BTypeScriptView Raw
1import { EventEmitter } from "events";
2/**
3 * @group Utils
4 */
5export declare function PromiseTimeout(timeout: number): Promise<void>;
6/**
7 * @group Utils
8 */
9export declare function awaitEventOnce<Obj extends EventEmitter, Event extends string, T>(element: Obj, event: Event, timeout?: number): Promise<T>;
10/**
11 * @group Utils
12 */
13export declare function awaitEventOnce<Obj extends EventEmitter, Event extends string>(element: Obj, event: Event, timeout?: number): Promise<void>;
14//# sourceMappingURL=promise-utils.d.ts.map
\No newline at end of file