import { Stream } from "@effect/core/stream/Stream/definition";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
/**
 * Keeps some of the errors, and terminates the fiber with the rest, using the
 * specified function to convert the `E` into a `Throwable`.
 * @tsplus fluent ets/Stream refineOrDieWith
 * @tsplus location "@effect/core/stream/Stream/operations/refineOrDieWith"
 */
export declare function refineOrDieWith_<R, E, E2, A>(self: Stream<R, E, A>, pf: (e: E) => Maybe<E2>, f: (e: E) => unknown, __tsplusTrace?: string): Stream<R, E2, A>;
/**
 * Keeps some of the errors, and terminates the fiber with the rest, using the
 * specified function to convert the `E` into a `Throwable`.
 * @tsplus static ets/Stream/Aspects refineOrDieWith
 * @tsplus pipeable ets/Stream refineOrDieWith
 * @tsplus location "@effect/core/stream/Stream/operations/refineOrDieWith"
 */
export declare const refineOrDieWith: <E, E2>(pf: (e: E) => import("@tsplus/stdlib/data/Maybe").Maybe<E2>, f: (e: E) => unknown, __tsplusTrace?: string) => <R, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R, E2, A>;
//# sourceMappingURL=refineOrDieWith.d.ts.map