import { Stream } from "@effect/core/stream/Stream/definition";
import { Either } from "@tsplus/stdlib/data/Either/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
/**
 * Fails with given error 'e' if value is `Left`.
 * @tsplus fluent ets/Stream rightOrFail
 * @tsplus location "@effect/core/stream/Stream/operations/rightOrFail"
 */
export declare function rightOrFail_<R, E, E2, A1, A2>(self: Stream<R, E, Either<A1, A2>>, e: LazyArg<E2>, __tsplusTrace?: string): Stream<R, E | E2, A2>;
/**
 * Fails with given error 'e' if value is `Left`.
 * @tsplus static ets/Stream/Aspects rightOrFail
 * @tsplus pipeable ets/Stream rightOrFail
 * @tsplus location "@effect/core/stream/Stream/operations/rightOrFail"
 */
export declare const rightOrFail: <E2>(e: import("@tsplus/stdlib/data/Function").LazyArg<E2>, __tsplusTrace?: string) => <R, E, A1, A2>(self: import("../definition").Stream<R, E, import("@tsplus/stdlib/data/Either").Either<A1, A2>>) => import("../definition").Stream<R, E | E2, A2>;
//# sourceMappingURL=rightOrFail.d.ts.map