import { Effect } from "@effect/core/io/Effect/definition";
/**
 * Folds over the failure value or the success value to yield an effect that
 * does not fail, but succeeds with the value returned by the left or right
 * function passed to `fold`.
 * @tsplus fluent ets/Effect fold
 * @tsplus location "@effect/core/io/Effect/operations/fold"
 */
export declare function fold_<R, E, A, A2, A3>(self: Effect<R, E, A>, failure: (e: E) => A2, success: (a: A) => A3, __tsplusTrace?: string): Effect<R, never, A2 | A3>;
/**
 * Folds over the failure value or the success value to yield an effect that
 * does not fail, but succeeds with the value returned by the left or right
 * function passed to `fold`.
 * @tsplus static ets/Effect/Aspects fold
 * @tsplus pipeable ets/Effect fold
 * @tsplus location "@effect/core/io/Effect/operations/fold"
 */
export declare const fold: <E, A, A2, A3>(failure: (e: E) => A2, success: (a: A) => A3, __tsplusTrace?: string) => <R>(self: import("../definition").Effect<R, E, A>) => import("../definition").Effect<R, never, A2 | A3>;
//# sourceMappingURL=fold.d.ts.map