import { Effect } from "@effect/core/io/Effect/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Schedule } from "@effect/core/io/Schedule/definition";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
import { Either } from "@tsplus/stdlib/data/Either/definition";
/**
 * Returns a new effect that repeats this effect according to the specified
 * schedule or until the first failure, at which point, the failure value and
 * schedule output are passed to the specified handler.
 *
 * Scheduled recurrences are in addition to the first execution, so that
 * `io.repeat(Schedule.once)` yields an effect that executes `io`, and then if
 * that succeeds, executes `io` an additional time.
 * @tsplus fluent ets/Effect repeatOrElseEither
 * @tsplus location "@effect/core/io/Effect/operations/repeatOrElseEither"
 */
export declare function repeatOrElseEither_<S, R, E, A, R1, B, R2, E2, C>(self: Effect<R, E, A>, schedule: LazyArg<Schedule<S, R1, A, B>>, orElse: (e: E, option: Maybe<B>) => Effect<R2, E2, C>, __tsplusTrace?: string): Effect<R | R1 | R2, E2, Either<C, B>>;
/**
 * Returns a new effect that repeats this effect according to the specified
 * schedule or until the first failure, at which point, the failure value and
 * schedule output are passed to the specified handler.
 *
 * Scheduled recurrences are in addition to the first execution, so that
 * `io.repeat(Schedule.once)` yields an effect that executes `io`, and then if
 * that succeeds, executes `io` an additional time.
 * @tsplus static ets/Effect/Aspects repeateOrElseEither
 * @tsplus location "@effect/core/io/Effect/operations/repeatOrElseEither"
 */
export declare function repeatOrElseEither<S, R1, A, B, E, R2, E2, C>(schedule: LazyArg<Schedule<S, R1, A, B>>, orElse: (e: E, option: Maybe<B>) => Effect<R2, E2, C>, __tsplusTrace?: string): <R>(self: Effect<R, E, A>) => Effect<R | R1 | R2, E2, Either<C, B>>;
//# sourceMappingURL=repeatOrElseEither.d.ts.map