import { Stream } from "@effect/core/stream/Stream/definition";
/**
 * Maps each element of this stream to another stream and returns the
 * non-deterministic merge of those streams, executing up to `n` inner streams
 * concurrently. When a new stream is created from an element of the source
 * stream, the oldest executing stream is cancelled. Up to `bufferSize`
 * elements of the produced streams may be buffered in memory by this
 * operator.
 * @tsplus fluent ets/Stream flatMapParSwitch
 * @tsplus location "@effect/core/stream/Stream/operations/flatMapParSwitch"
 */
export declare function flatMapParSwitch_<R, E, A, R2, E2, B>(self: Stream<R, E, A>, n: number, f: (a: A) => Stream<R2, E2, B>, bufferSize?: number, __tsplusTrace?: string): Stream<R | R2, E | E2, B>;
/**
 * Maps each element of this stream to another stream and returns the
 * non-deterministic merge of those streams, executing up to `n` inner streams
 * concurrently. When a new stream is created from an element of the source
 * stream, the oldest executing stream is cancelled. Up to `bufferSize`
 * elements of the produced streams may be buffered in memory by this
 * operator.
 * @tsplus static ets/Stream/Aspects flatMapParSwitch
 * @tsplus pipeable ets/Stream flatMapParSwitch
 * @tsplus location "@effect/core/stream/Stream/operations/flatMapParSwitch"
 */
export declare const flatMapParSwitch: <A, R2, E2, B>(n: number, f: (a: A) => import("../definition").Stream<R2, E2, B>, bufferSize?: number, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2, E | E2, B>;
//# sourceMappingURL=flatMapParSwitch.d.ts.map