/**
 * @module timers
 */
/**
 * Fires a callback function after the specified time elapses.
 * @param cb function to execute after time elapses
 * @param ms milliseconds to wait before executing
 * @return an ID for the newly created timeout
 */
export declare function setTimeout(cb: any, ms: any): any;
/**
 * Cancels a previously specified timeout
 * @param id the id of the timeout to cancel
 */
export declare function clearTimeout(id: any): void;
/**
 * Fires a callback after the current task yields
 * @param cb The callback to fire asynchronously
 */
export declare function setImmediate(cb: any): void;
/**
 * Fires a callback over and over
 * @param cb The callback to fire every <ms> milliseconds
 * @param ms Milliseconds to wait between intervals
 * @return id of newly created interval
 */
export declare function setInterval(cb: any, ms: any): any;
/**
 * Cancels the previously created interval
 * @param id The interval ID to cancel
 */
export declare function clearInterval(id: any): void;
