import { Cause } from "@effect/core/io/Cause/definition"; import { Effect } from "@effect/core/io/Effect/definition"; import { Stream } from "@effect/core/stream/Stream/definition"; /** * Runs the specified effect if this stream fails, providing the error to the * effect if it exists. * * Note: Unlike `Effect.onError`, there is no guarantee that the provided * effect will not be interrupted. * @tsplus static effect/core/stream/Stream.Aspects onError * @tsplus pipeable effect/core/stream/Stream onError * @tsplus location "@effect/core/stream/Stream/operations/onError" */ export declare function onError(cleanup: (cause: Cause) => Effect): (self: import("../definition").Stream) => import("../definition").Stream; //# sourceMappingURL=onError.d.ts.map