/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * A deferred creates a promise and the ability to resolve or reject it * @legacy @beta */ export declare class Deferred { private readonly p; private res; private rej; private completed; constructor(); /** * Returns whether the underlying promise has been completed */ get isCompleted(): boolean; /** * Retrieves the underlying promise for the deferred * * @returns the underlying promise */ get promise(): Promise; /** * Resolves the promise * * @param value - the value to resolve the promise with */ resolve(value: T | PromiseLike): void; /** * Rejects the promise * * @param value - the value to reject the promise with */ reject(error: any): void; } //# sourceMappingURL=promises.d.ts.map