import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/chunks";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/unchunks";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/suspend";
/**
 * Performs the specified stream transformation with the chunk structure of
 * the stream exposed.
 *
 * @tsplus fluent ets/Stream chunksWith
 */

export function chunksWith_(self, f, __tsplusTrace) {
  return tsplus_module_3.suspend(() => tsplus_module_2.unchunks(f(tsplus_module_1.chunks(self, __tsplusTrace)), __tsplusTrace), __tsplusTrace);
}
/**
 * Performs the specified stream transformation with the chunk structure of
 * the stream exposed.
 *
 * @tsplus static ets/Stream/Aspects chunksWith
 */

export const chunksWith = (f, __tsplusTrace) => self => chunksWith_(self, f, __tsplusTrace);
//# sourceMappingURL=chunksWith.mjs.map