import Promise from '@dojo/shim/Promise';
export default class Deferred<T> {
    private _resolver;
    private _rejector;
    readonly promise: Promise<T>;
    constructor();
    callback(callback: Function): any;
    rejectOnError(callback: Function): any;
    resolve(value?: T): void;
    reject(error?: Error): void;
    protected _finalize(): void;
}
