/** * A `Promise.withResolvers` implementation that exposes the `resolve` and * `reject` functions on a `Promise`. * Copied from next https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/detached-promise.ts * @see https://tc39.es/proposal-promise-with-resolvers/ */ export declare class DetachedPromise { readonly resolve: (value: T | PromiseLike) => void; readonly reject: (reason: any) => void; readonly promise: Promise; constructor(); } export declare class DetachedPromiseRunner { private promises; withResolvers(): DetachedPromise; add(promise: Promise): void; await(): Promise; }