import { STM } from "@effect/core/stm/STM/definition/base";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Either } from "@tsplus/stdlib/data/Either/definition";
/**
 * Returns a transactional effect that will produce the value of this effect
 * in left side, unless it fails or retries, in which case, it will produce
 * the value of the specified effect in right side.
 * @tsplus fluent ets/STM orElseEither
 * @tsplus location "@effect/core/stm/STM/operations/orElseEither"
 */
export declare function orElseEither_<R, E, A, R1, E1, B>(self: STM<R, E, A>, that: LazyArg<STM<R1, E1, B>>): STM<R | R1, E | E1, Either<A, B>>;
/**
 * Returns a transactional effect that will produce the value of this effect
 * in left side, unless it fails or retries, in which case, it will produce
 * the value of the specified effect in right side.
 * @tsplus static ets/STM/Aspects orElseEither
 * @tsplus pipeable ets/STM orElseEither
 * @tsplus location "@effect/core/stm/STM/operations/orElseEither"
 */
export declare const orElseEither: <R1, E1, B>(that: import("@tsplus/stdlib/data/Function").LazyArg<import("../definition").STM<R1, E1, B>>) => <R, E, A>(self: import("../definition").STM<R, E, A>) => import("../definition").STM<R | R1, E | E1, import("@tsplus/stdlib/data/Either").Either<A, B>>;
//# sourceMappingURL=orElseEither.d.ts.map