/** * Halts the current thread to invoke an event loop. * * @param ms - * The total number of milliseconds to sleep. * * @returns * A promise that resolves after ms milliseconds. */ export declare function sleep(ms?: number): Promise; /** * Halts the current thread to invoke an event loop. * * @param ms - * The total number of milliseconds to sleep. * @param val - * The value to resolve with. * @param T - * The type of value that will be resolved. * * @returns * A promise that resolves with val after ms milliseconds. */ export declare function sleep(ms: number, val: T): Promise;