"use strict";
/*
 * @poppinss/utils
 *
 * (c) Harminder Virk <virk@adonisjs.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBest = void 0;
const colors_1 = require("@poppinss/colors");
/**
 * Returns the colors instance based upon the environment
 */
function getBest(testing, enabled) {
    if (!enabled) {
        return new colors_1.Raw();
    }
    if (testing) {
        return new colors_1.FakeColors();
    }
    return new colors_1.Colors();
}
exports.getBest = getBest;
