import { Stream } from "@effect/core/stream/Stream/definition";
import { Effect } from "@effect/core/io/Effect/definition";
/**
 * Returns a stream that effectfully "peeks" at the failure of the stream.
 * @tsplus fluent ets/Stream tapError
 * @tsplus location "@effect/core/stream/Stream/operations/tapError"
 */
export declare function tapError_<R, E, A, R2, E2, Z>(self: Stream<R, E, A>, f: (e: E) => Effect<R2, E2, Z>, __tsplusTrace?: string): Stream<R | R2, E | E2, A>;
/**
 * Returns a stream that effectfully "peeks" at the failure of the stream.
 * @tsplus static ets/Stream/Aspects tapError
 * @tsplus pipeable ets/Stream tapError
 * @tsplus location "@effect/core/stream/Stream/operations/tapError"
 */
export declare const tapError: <E, R2, E2, Z>(f: (e: E) => import("../../../io/Effect").Effect<R2, E2, Z>, __tsplusTrace?: string) => <R, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2, E | E2, A>;
//# sourceMappingURL=tapError.d.ts.map