import type * as T from "../_internal/effect"
import type { Stream } from "./definitions"
/**
 * Maps over elements of the stream with the specified effectful function,
 * partitioned by `p` executing invocations of `f` concurrently. The number
 * of concurrent invocations of `f` is determined by the number of different
 * outputs of type `K`. Up to `buffer` elements may be buffered per partition.
 * Transformed elements may be reordered but the order within a partition is maintained.
 */
export declare function mapMPartitioned<O, K, R1, E1, O2>(
  keyBy: (o: O) => K,
  f: (o: O) => T.Effect<R1, E1, O2>,
  buffer?: number
): <R, E>(self: Stream<R, E, O>) => Stream<R & R1, E1 | E, O2>
//# sourceMappingURL=mapMPartitioned.d.ts.map
