import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/mapError";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/map";
/**
 * Returns a stream whose failure and success channels have been mapped by the
 * specified pair of functions, `f` and `g`.
 *
 * @tsplus fluent ets/Stream mapBoth
 */

export function mapBoth_(self, f, g, __tsplusTrace) {
  return tsplus_module_2.map_(tsplus_module_1.mapError_(self, f, __tsplusTrace), g, __tsplusTrace);
}
/**
 * Returns a stream whose failure and success channels have been mapped by the
 * specified pair of functions, `f` and `g`.
 *
 * @tsplus static ets/Stream/Aspects mapBoth
 */

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