/** * Time related utilities. */ export declare class Time { /** * Sleeps for the desired duration * @param durationInMillisecond the desired amount of sleep time * @returns when the provided duration has passed */ static sleep(durationInMillisecond?: number): Promise; /** * Retries fn() after sleep for the desired duration if retries > 0 * @param fn the function to retry * @param retries the number of retries * @param retryIntervalMs the duration to sleep between retries * @throws error if retries <= 0 * @returns the result of fn() */ static retry(fn: () => Promise | T, { retries, retryIntervalMs }: { retries: number; retryIntervalMs: number; }): Promise; } //# sourceMappingURL=time.d.ts.map