declare module 'timers/promises' { import { TimerOptions } from 'timers'; /** * Returns a promise that resolves after the specified delay in milliseconds. * @param delay defaults to 1 */ function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; /** * Returns a promise that resolves in the next tick. */ function setImmediate(value?: T, options?: TimerOptions): Promise; /** * * Returns an async iterator that generates values in an interval of delay ms. * @param delay defaults to 1 */ function setInterval(delay?: number, value?: T, options?: TimerOptions): AsyncIterable; } declare module 'node:timers/promises' { export * from 'timers/promises'; }