export interface PromiseWithResolve { promise: Promise; /** * NOTE: cannot pass a promise to `value`, otherwise it's possible to reject * - in that case you should use `Promise.withResolvers()` rather than * `promiseWithResolve` */ resolve(value: Awaited): void; } /** When you can only succeed, there's no need to handle failure */ export declare function promiseWithResolve(): PromiseWithResolve; //# sourceMappingURL=promiseWithResolve.d.ts.map