export declare class DeferredPromise<T> extends Promise<T> {
    resolve: (value: T | PromiseLike<T>) => void;
    reject: (reason: T | Error) => void;
    initialCallStack: Error['stack'];
    constructor(executor?: ConstructorParameters<typeof Promise<T>>[0]);
    /** @throws error with amended call stack */
    rejectWithError(error: Error): void;
}
