import { STM } from "@effect/core/stm/STM/definition/base";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
/**
 * Unwraps the optional error, defaulting to the provided value.
 * @tsplus fluent ets/STM flattenErrorMaybe
 * @tsplus location "@effect/core/stm/STM/operations/flattenErrorMaybe"
 */
export declare function flattenErrorMaybe_<R, E, A, E2>(self: STM<R, Maybe<E>, A>, def: LazyArg<E2>): STM<R, E | E2, A>;
/**
 * Unwraps the optional error, defaulting to the provided value.
 * @tsplus static ets/STM/Aspects flattenErrorMaybe
 * @tsplus pipeable ets/STM flattenErrorMaybe
 * @tsplus location "@effect/core/stm/STM/operations/flattenErrorMaybe"
 */
export declare const flattenErrorMaybe: <E2>(def: import("@tsplus/stdlib/data/Function").LazyArg<E2>) => <R, E, A>(self: import("../definition").STM<R, import("@tsplus/stdlib/data/Maybe").Maybe<E>, A>) => import("../definition").STM<R, E | E2, A>;
//# sourceMappingURL=flattenErrorMaybe.d.ts.map