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