import type * as CS from "../../../../Cause/index.js"; import * as T from "../../../../Effect/index.js"; import type * as C from "../core.js"; /** * 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. */ export declare function onError_(self: C.Stream, cleanup: (c: CS.Cause) => T.Effect): C.Stream; /** * 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. * * @ets_data_first onError_ */ export declare function onError(cleanup: (c: CS.Cause) => T.Effect): (self: C.Stream) => C.Stream; //# sourceMappingURL=onError.d.ts.map