export interface PromiseWithResolvers { promise: Promise; resolve: (value: T | PromiseLike) => void; reject: (reason: any) => void; } export declare function createDeferred(): PromiseWithResolvers;