export declare type Resolve = (value: T) => void; export declare type Reject = (error: Error) => void; export declare class Deferred { #private; constructor(); /** Returns this deferreds promise */ promise(): Promise; /** Resolves this deffered with the given value */ resolve(value: T): void; /** Rejects this deffered with the given error */ reject(error: any): void; }