/**
 * Returns a promise and two functions to resolve and reject the promise.
 * This is a ponyfill for `Promise.withResolvers()`.
 */
export function withResolvers() {
    let resolve;
    let reject;
    const promise = new Promise((_resolve, _reject) => {
        resolve = _resolve;
        reject = _reject;
    });
    return { promise, resolve: resolve, reject: reject };
}
//# sourceMappingURL=with-resolvers.js.map