export declare function delay(millis: number, unref?: boolean): Promise; /** * Run the given thunk until the promise is resolved to true, or the timeout * passes. */ export declare function until(f: (count: number) => boolean | Promise, timeoutMs: number, delayMs?: number): Promise; /** * @return a thunk that will call the underlying thunk at most every `minDelayMs` * milliseconds. The thunk will accept a boolean, that, when set, will force the * underlying thunk to be called (mostly useful for tests) */ export declare function ratelimit(f: () => T, minDelayMs: number): () => T | undefined;