const fileName_1 = "(@effect/core) _src/io/Schedule/operations/provideEnvironment.ts";
import * as tsplus_module_1 from "@effect/core/io/Effect/operations/provideEnvironment";
import { makeWithState } from "@effect/core/io/Schedule/operations/_internal/makeWithState";
/**
 * Returns a new schedule with its environment provided to it, so the
 * resulting schedule does not require any environment.
 *
 * @tsplus fluent ets/Schedule provideEnvironment
 * @tsplus fluent ets/Schedule/WithState provideEnvironment
 */

export function provideEnvironment_(self, environment) {
  return makeWithState(self._initial, (now, input, state) => tsplus_module_1.provideEnvironment_(self._step(now, input, state), environment, fileName_1 + ":16:76"));
}
/**
 * Returns a new schedule with its environment provided to it, so the
 * resulting schedule does not require any environment.
 *
 * @tsplus static ets/Schedule/Aspects provideEnvironment
 */

export const provideEnvironment = environment => self => provideEnvironment_(self, environment);
//# sourceMappingURL=provideEnvironment.mjs.map