import { ProcessAwarePromiseFactory } from "./ProcessAwarePromise"; export declare class ProcessAwareTimers { private processExitErr; private timeouts; private intervals; private immediates; setProcessExitError(e: Error): void; origSetTimeOut: typeof setTimeout; origSetInterval: typeof setInterval; origClearInterval: typeof clearInterval; origSetImmediate: typeof setImmediate; promiseFactory: ProcessAwarePromiseFactory; constructor(promiseFactory: ProcessAwarePromiseFactory, origSetTimeOut: typeof setTimeout, origSetInterval: typeof setInterval, origClearInterval: typeof clearInterval, origSetImmediate: typeof setImmediate); makeSetImmediate(): (handler: (...args: any[]) => void, ...args: any[]) => NodeJS.Immediate; makeSetTimeout(): (handler: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timeout; makeIntervalFuncs(): { setInterval(handler: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; clearInterval(interval: NodeJS.Timeout): void; }; /** * Rejects the first parent in a chain and expects it to cascade... * @param parentChain */ private rejectNextParentInChain; clear(): void; }