import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/foldChunksEffect";
import * as tsplus_module_2 from "@effect/core/stream/Sink/operations/dropLeftover";
/**
 * A sink that effectfully folds its input chunks with the provided function
 * and initial state. `f` must preserve chunking-invariance.
 *
 * @tsplus static ets/Sink/Ops foldLeftChunksEffect
 */

export function foldLeftChunksEffect(z, f, __tsplusTrace) {
  return tsplus_module_2.dropLeftover(tsplus_module_1.foldChunksEffect(z, () => true, f, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=foldLeftChunksEffect.mjs.map