/** * Wrapper class for promise with external resolve and reject. */ export declare class Deferred { /** * The promise associated with this deferred object. */ readonly promise: Promise; private _resolve; private _reject; /** * The resolve method of the promise associated with this deferred object. */ get resolve(): (value: T | PromiseLike) => void; /** * The reject method of the promise associated with this deferred object. */ get reject(): (reason?: any) => void; /** * Constructor for this deferred object. */ constructor(); }