/** * A promise that can be resolved externally, or cancelled. */ export declare class ExtPromise { /** * The method to resolve this promise. */ resolve: (result: T) => void; /** * The method to reject this promise. */ reject: (error: any) => void; /** * The promise to use to await on. */ readonly promise: Promise; private _complete; private _cancelled; /** * If this promise has been completed (resolved or rejected). */ get complete(): boolean; /** * If this promise has been cancelled, and will never resolve. */ get cancelled(): boolean; constructor(); /** * Cancels this promise so that it will never resolve. */ cancel(): void; }