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