export declare class Promise { static all(promiseList: Array>): Promise; static resolve(value: any): Promise; static reject(value: any): Promise; static race(values: any): Promise; /** * Set the immediate function to execute callbacks * @param fn {function} Function to execute * @private */ static _setImmediateFn(fn: any): void; private _state; private _value; private _deferreds; constructor(init: (resolve: (value?: T | Promise) => void, reject: (reason?: any) => void) => void); catch(onRejected: (value: any) => any): Promise; then(onFulfilled: any, onRejected?: any): Promise; }