/** * Delays the execution of subsequent code by a specified amount of time. * If a value is provided, the promise will resolve with that value after the timeout. * * @template T - The type of the value to resolve with. * @param {number} timeoutMs - The number of milliseconds to delay. * @param {T} [valueToResolve] - Optional value to resolve the promise with after the timeout. * @returns {Promise} - Resolves after the specified timeout with valueToResolve or void. */ export declare function sleep(timeoutMs: number): Promise; export declare function sleep(timeoutMs: number, valueToResolve: T): Promise;