export declare class CancelablePromise { onResolve: (value: any) => void; onReject: (error: any) => void; onCancel: () => void; fulfilled: boolean; rejected: boolean; called: boolean; value: T; constructor(executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void); cancel(): boolean; then(callback: (value: any) => void): CancelablePromise; catch(callback: (error: any) => void): CancelablePromise; finally(callback: Function): CancelablePromise; static resolve(val: T): CancelablePromise; static reject(reason: any): CancelablePromise; static all(promises: CancelablePromise[]): CancelablePromise; }