237 BTypeScriptView Raw
1/**
2 * Return a promise that resolves in the given milliseconds with the given value.
3 */
4export declare function sleep(milliseconds?: number): Promise<void>;
5export declare function sleep<T>(milliseconds: number, value: T): Promise<T>;