import { Fiber } from "@effect/core/io/Fiber/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Either } from "@tsplus/stdlib/data/Either/definition";
/**
 * Returns a fiber that prefers `this` fiber, but falls back to the `that` one
 * when `this` one fails. Interrupting the returned fiber will interrupt both
 * fibers, sequentially, from left to right.
 * @tsplus fluent ets/Fiber orElseEither
 * @tsplus fluent ets/RuntimeFiber orElseEither
 * @tsplus location "@effect/core/io/Fiber/operations/orElseEither"
 */
export declare function orElseEither_<E, E1, A, B>(self: Fiber<E, A>, that: LazyArg<Fiber<E1, B>>): Fiber<E | E1, Either<A, B>>;
/**
 * Returns a fiber that prefers `this` fiber, but falls back to the `that` one
 * when `this` one fails. Interrupting the returned fiber will interrupt both
 * fibers, sequentially, from left to right.
 * @tsplus static ets/Fiber/Aspects orElseEither
 * @tsplus pipeable ets/Fiber orElseEither
 * @tsplus location "@effect/core/io/Fiber/operations/orElseEither"
 */
export declare const orElseEither: <E1, B>(that: import("@tsplus/stdlib/data/Function").LazyArg<import("../definition").Fiber<E1, B>>) => <E, A>(self: import("../definition").Fiber<E, A>) => import("../definition").Fiber<E | E1, import("@tsplus/stdlib/data/Either").Either<A, B>>;
//# sourceMappingURL=orElseEither.d.ts.map