import { STM } from "@effect/core/stm/STM/definition/base";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
/**
 * Extracts the optional value, or fails with the given error 'e'.
 * @tsplus fluent ets/STM someOrFail
 * @tsplus location "@effect/core/stm/STM/operations/someOrFail"
 */
export declare function someOrFail_<R, E, A, E2>(self: STM<R, E, Maybe<A>>, orFail: LazyArg<E2>): STM<R, E | E2, A>;
/**
 * Extracts the optional value, or fails with the given error 'e'.
 * @tsplus static ets/STM/Aspects someOrFail
 * @tsplus pipeable ets/STM someOrFail
 * @tsplus location "@effect/core/stm/STM/operations/someOrFail"
 */
export declare const someOrFail: <E2>(orFail: import("@tsplus/stdlib/data/Function").LazyArg<E2>) => <R, E, A>(self: import("../definition").STM<R, E, import("@tsplus/stdlib/data/Maybe").Maybe<A>>) => import("../definition").STM<R, E | E2, A>;
//# sourceMappingURL=someOrFail.d.ts.map