import type * as Tp from "../Collections/Immutable/Tuple/index.js"; import type { Effect, RIO } from "./effect.js"; /** * Feeds elements of type `A` to a function `f` that returns an effect. * Collects all successes and failures in a separated fashion. * * @ets_data_first partition_ */ export declare function partition(f: (a: A) => Effect, __trace?: string): (as: Iterable) => RIO, Iterable]>>; /** * Feeds elements of type `A` to a function `f` that returns an effect. * Collects all successes and failures in a separated fashion. */ export declare function partition_(as: Iterable, f: (a: A) => Effect, __trace?: string): RIO, Iterable]>>; /** * Feeds elements of type `A` to a function `f` that returns an effect. * Collects all successes and failures in parallel and returns the result as * a tuple. * * @ets_data_first partitionPar_ */ export declare function partitionPar(f: (a: A) => Effect, __trace?: string): (as: Iterable) => Effect, Iterable]>>; /** * Feeds elements of type `A` to a function `f` that returns an effect. * Collects all successes and failures in parallel and returns the result as * a tuple. */ export declare function partitionPar_(as: Iterable, f: (a: A) => Effect, __trace?: string): Effect, Iterable]>>; /** * Feeds elements of type `A` to a function `f` that returns an effect. * Collects all successes and failures in parallel and returns the result as * a tuple. * * Unlike `partitionPar`, this method will use at most up to `n` fibers. * * @ets_data_first partitionParN_ */ export declare function partitionParN(n: number, f: (a: A) => Effect, __trace?: string): (as: Iterable) => Effect, Iterable]>>; /** * Feeds elements of type `A` to a function `f` that returns an effect. * Collects all successes and failures in parallel and returns the result as * a tuple. * * Unlike `partitionPar`, this method will use at most up to `n` fibers. */ export declare function partitionParN_(as: Iterable, n: number, f: (a: A) => Effect, __trace?: string): Effect, Iterable]>>; //# sourceMappingURL=partition.d.ts.map