import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/contramapChunksEffect";
import * as tsplus_module_2 from "@effect/core/stream/Sink/operations/map";
/**
 * Effectfully transforms both input chunks and result of this sink using the
 * provided functions. `f` and `g` must preserve chunking-invariance.
 *
 * @tsplus fluent ets/Sink dimapChunksEffect
 */

export function dimapChunksEffect_(self, f, g, __tsplusTrace) {
  return tsplus_module_2.map_(tsplus_module_1.contramapChunksEffect_(self, f, __tsplusTrace), g, __tsplusTrace);
}
/**
 * Effectfully transforms both input chunks and result of this sink using the
 * provided functions. `f` and `g` must preserve chunking-invariance.
 *
 * @tsplus static ets/Sink/Aspects dimapChunksEffect
 */

export const dimapChunksEffect = (f, g, __tsplusTrace) => self => dimapChunksEffect_(self, f, g, __tsplusTrace);
//# sourceMappingURL=dimapChunksEffect.mjs.map