import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Schedule } from "@effect/core/io/Schedule/definition";
/**
 * When the stream fails, retry it according to the given schedule
 *
 * This retries the entire stream, so will re-execute all of the stream's
 * acquire operations.
 *
 * The schedule is reset as soon as the first element passes through the
 * stream again.
 * @param schedule Schedule receiving as input the errors of the stream.
 * @tsplus fluent ets/Stream retry
 * @tsplus location "@effect/core/stream/Stream/operations/retry"
 */
export declare function retry_<R, E, A, S, R2, Z>(self: Stream<R, E, A>, schedule: LazyArg<Schedule<S, R2, E, Z>>, __tsplusTrace?: string): Stream<R | R2, E, A>;
/**
 * When the stream fails, retry it according to the given schedule
 *
 * This retries the entire stream, so will re-execute all of the stream's
 * acquire operations.
 *
 * The schedule is reset as soon as the first element passes through the
 * stream again.
 * @param schedule Schedule receiving as input the errors of the stream.
 * @tsplus static ets/Stream/Aspects retry
 * @tsplus pipeable ets/Stream retry
 * @tsplus location "@effect/core/stream/Stream/operations/retry"
 */
export declare const retry: <E, S, R2, Z>(schedule: import("@tsplus/stdlib/data/Function").LazyArg<import("../../../io/Schedule").Schedule<S, R2, E, Z>>, __tsplusTrace?: string) => <R, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2, E, A>;
//# sourceMappingURL=retry.d.ts.map