import { Sink } from "@effect/core/stream/Sink/definition/base";
/**
 * Transforms the errors emitted by this sink using `f`.
 * @tsplus fluent ets/Sink mapError
 * @tsplus location "@effect/core/stream/Sink/operations/mapError"
 */
export declare function mapError_<R, E, E2, In, L, Z>(self: Sink<R, E, In, L, Z>, f: (z: E) => E2, __tsplusTrace?: string): Sink<R, E2, In, L, Z>;
/**
 * Transforms the errors emitted by this sink using `f`.
 * @tsplus static ets/Sink/Aspects mapError
 * @tsplus pipeable ets/Sink mapError
 * @tsplus location "@effect/core/stream/Sink/operations/mapError"
 */
export declare const mapError: <E, E2>(f: (z: E) => E2, __tsplusTrace?: string) => <R, In, L, Z>(self: import("../definition").Sink<R, E, In, L, Z>) => import("../definition").Sink<R, E2, In, L, Z>;
//# sourceMappingURL=mapError.d.ts.map