type Validator = (payload: TPayload, matcher: TMatcher) => boolean; type TimeoutFormatter = (matcher: TMatcher, timeout: number) => string; declare class Waitress { private waiters; private readonly validator; private readonly timeoutFormatter; private currentID; constructor(validator: Validator, timeoutFormatter: TimeoutFormatter); resolve(payload: TPayload): boolean; reject(payload: TPayload, message: string): boolean; remove(ID: number): void; waitFor(matcher: TMatcher, timeout: number): { ID: number; start: () => { promise: Promise; ID: number; }; }; private forEachMatching; } export default Waitress; //# sourceMappingURL=waitress.d.ts.map