export type Deferred<T> = Promise<T> & {
    resolve: (value?: T | PromiseLike<T>) => void;
    reject: (reason?: any) => void;
};
/** Creates a controlled promise */
export declare function createDefer<T>(): Deferred<T>;
