export declare function promiseWithResolvers(): { promise: Promise; resolve: (value: T) => void; reject: (reason?: any) => void; };