import { STM } from "@effect/core/stm/STM/definition/base";
/**
 * Creates a composite effect that represents this effect followed by another
 * one that may depend on the error produced by this one.
 * @tsplus fluent ets/STM flatMapError
 * @tsplus location "@effect/core/stm/STM/operations/flatMapError"
 */
export declare function flatMapError_<R, E, A, R2, E2>(self: STM<R, E, A>, f: (e: E) => STM<R2, never, E2>): import("../definition").STM<R | R2, E2, A>;
/**
 * Creates a composite effect that represents this effect followed by another
 * one that may depend on the error produced by this one.
 * @tsplus static ets/STM/Aspects flatMapError
 * @tsplus pipeable ets/STM flatMapError
 * @tsplus location "@effect/core/stm/STM/operations/flatMapError"
 */
export declare const flatMapError: <E, R2, E2>(f: (e: E) => import("../definition").STM<R2, never, E2>) => <R, A>(self: import("../definition").STM<R, E, A>) => import("../definition").STM<R | R2, E2, A>;
//# sourceMappingURL=flatMapError.d.ts.map