import { Layer } from "@effect/core/io/Layer/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
/**
 * Executes this layer and returns its output, if it succeeds, but otherwise
 * executes the specified layer.
 * @tsplus operator ets/Layer |
 * @tsplus fluent ets/Layer orElse
 * @tsplus location "@effect/core/io/Layer/operations/orElse"
 */
export declare function orElse_<R, E, A, R1, E1, A1>(self: Layer<R, E, A>, that: LazyArg<Layer<R1, E1, A1>>): Layer<R | R1, E | E1, A & A1>;
/**
 * Executes this layer and returns its output, if it succeeds, but otherwise
 * executes the specified layer.
 * @tsplus static ets/Layer/Aspects orElse
 * @tsplus pipeable ets/Layer orElse
 * @tsplus location "@effect/core/io/Layer/operations/orElse"
 */
export declare const orElse: <R1, E1, A1>(that: import("@tsplus/stdlib/data/Function").LazyArg<import("../definition").Layer<R1, E1, A1>>) => <R, E, A>(self: import("../definition").Layer<R, E, A>) => import("../definition").Layer<R | R1, E | E1, A & A1>;
//# sourceMappingURL=orElse.d.ts.map