import { STM } from "@effect/core/stm/STM/definition/base";
import { LazyArg } from "@tsplus/stdlib/data/Function";
/**
 * Tries this effect first, and if it fails or retries, fails with the
 * specified error.
 * @tsplus fluent ets/STM orElseFail
 * @tsplus location "@effect/core/stm/STM/operations/orElseFail"
 */
export declare function orElseFail_<R, E, E1, A>(self: STM<R, E, A>, e: LazyArg<E1>): STM<R, E | E1, A>;
/**
 * Tries this effect first, and if it fails or retries, fails with the
 * specified error.
 * @tsplus static ets/STM/Aspects orElseFail
 * @tsplus pipeable ets/STM orElseFail
 * @tsplus location "@effect/core/stm/STM/operations/orElseFail"
 */
export declare const orElseFail: <E1>(e: import("@tsplus/stdlib/data/Function").LazyArg<E1>) => <R, E, A>(self: import("../definition").STM<R, E, A>) => import("../definition").STM<R, E | E1, A>;
//# sourceMappingURL=orElseFail.d.ts.map