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