/* eslint-disable @typescript-eslint/no-explicit-any */
/*
 * @adonisjs/fold
 *
 * (c) AdonisJS
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/**
 * Exports the `resolve` and the reject methods as part of the
 * class public API.
 *
 * It allows resolving and rejecting promises outside of the
 * class constructor.
 */
export class Deferred {
    resolve;
    reject;
    promise = new Promise((resolve, reject) => {
        this.reject = reject;
        this.resolve = resolve;
    });
}
//# sourceMappingURL=deferred_promise.js.map