"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.provideEnvironment = void 0;
exports.provideEnvironment_ = provideEnvironment_;

var _primitives = /*#__PURE__*/require("@effect/core/stream/Channel/definition/primitives");

/**
 * Provides the channel with its required environment, which eliminates its
 * dependency on `Env`.
 *
 * @tsplus fluent ets/Channel provideEnvironment
 */
function provideEnvironment_(self, env) {
  return new _primitives.Provide(env, self);
}
/**
 * Provides the channel with its required environment, which eliminates its
 * dependency on `Env`.
 *
 * @tsplus static ets/Channel/Aspects provideEnvironment
 */


const provideEnvironment = env => self => provideEnvironment_(self, env);

exports.provideEnvironment = provideEnvironment;
//# sourceMappingURL=provideEnvironment.js.map