import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Either } from "@tsplus/stdlib/data/Either/definition";
/**
 * Switches to the provided stream in case this one fails with a typed error.
 *
 * See also `Stream.catchAll`.
 * @tsplus fluent ets/Stream orElseEither
 * @tsplus location "@effect/core/stream/Stream/operations/orElseEither"
 */
export declare function orElseEither_<R, E, A, R2, E2, A2>(self: Stream<R, E, A>, that: LazyArg<Stream<R2, E2, A2>>, __tsplusTrace?: string): Stream<R | R2, E | E2, Either<A, A2>>;
/**
 * Switches to the provided stream in case this one fails with a typed error.
 *
 * See also `Stream.catchAll`.
 * @tsplus static ets/Stream/Aspects orElseEither
 * @tsplus pipeable ets/Stream orElseEither
 * @tsplus location "@effect/core/stream/Stream/operations/orElseEither"
 */
export declare const orElseEither: <R2, E2, A2>(that: import("@tsplus/stdlib/data/Function").LazyArg<import("../definition").Stream<R2, E2, A2>>, __tsplusTrace?: string) => <R, E, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2, E | E2, import("@tsplus/stdlib/data/Either").Either<A, A2>>;
//# sourceMappingURL=orElseEither.d.ts.map