import { Effect } from "@effect/core/io/Effect/definition";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
/**
 * Takes some fiber failures and converts them into errors, using the
 * specified function to convert the `E` into an `E1 | E2`.
 * @tsplus fluent ets/Effect unrefineWith
 * @tsplus location "@effect/core/io/Effect/operations/unrefineWith"
 */
export declare function unrefineWith_<R, E, E1, E2, A>(self: Effect<R, E, A>, pf: (u: unknown) => Maybe<E1>, f: (e: E) => E2, __tsplusTrace?: string): import("../definition").Effect<R, E1 | E2, A>;
/**
 * Takes some fiber failures and converts them into errors, using the
 * specified function to convert the `E` into an `E1 | E2`.
 * @tsplus static ets/Effect/Aspects unrefineWith
 * @tsplus pipeable ets/Effect unrefineWith
 * @tsplus location "@effect/core/io/Effect/operations/unrefineWith"
 */
export declare const unrefineWith: <E, E1, E2>(pf: (u: unknown) => import("@tsplus/stdlib/data/Maybe").Maybe<E1>, f: (e: E) => E2, __tsplusTrace?: string) => <R, A>(self: import("../definition").Effect<R, E, A>) => import("../definition").Effect<R, E1 | E2, A>;
//# sourceMappingURL=unrefineWith.d.ts.map