import { Effect } from "@effect/core/io/Effect/definition"; /** * Recovers from errors by accepting one effect to execute for the case of an * error, and one effect to execute for the case of success. * * This method has better performance than `either` since no intermediate * value is allocated and does not require subsequent calls to `chain` to * define the next effect. * * The error parameter of the returned `IO` may be chosen arbitrarily, since * it will depend on the `IO`s returned by the given continuations. * @tsplus static effect/core/io/Effect.Aspects foldEffect * @tsplus pipeable effect/core/io/Effect foldEffect * @tsplus location "@effect/core/io/Effect/operations/foldEffect" */ export declare function foldEffect(failure: (e: E) => Effect, success: (a: A) => Effect): (self: import("../definition").Effect) => import("../definition").Effect; //# sourceMappingURL=foldEffect.d.ts.map