const fileName_1 = "(@effect/core) _src/stream/Channel/operations/provideSomeLayer.ts";
import * as tsplus_module_1 from "@effect/core/io/Layer/operations/environment";
import * as tsplus_module_2 from "@effect/core/io/Layer/operations/and";
import * as tsplus_module_3 from "@effect/core/stream/Channel/operations/provideLayer";
/**
 * Splits the environment into two parts, providing one part using the
 * specified layer and leaving the remainder `Env0`.
 *
 * @tsplus fluent ets/Channel provideSomeLayer
 */

export function provideSomeLayer_(self, layer) {
  return tsplus_module_3.provideLayer_(self, () => tsplus_module_2.and_(tsplus_module_1.environment(), () => layer()), fileName_1 + ":22:27");
}
/**
 * @tsplus static ets/Channel/Aspects provideSomeLayer
 */

export const provideSomeLayer = layer => self => provideSomeLayer_(self, layer);
//# sourceMappingURL=provideSomeLayer.mjs.map