///
export declare class CancellablePromise implements PromiseLike {
private static readonly CANCEL_EVENT;
private readonly emitter;
private readonly promise;
private cancelled;
constructor(method: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void, onCancel?: (handleCancel: () => void) => void) => void);
then(onfulfilled?: (value: T) => S | PromiseLike, onrejected?: (reason: any) => void): Promise;
catch(onRejected?: (reason: any) => PromiseLike): Promise;
cancel(): void;
}