import { STM } from "@effect/core/stm/STM/definition/base";
import { Refinement } from "@tsplus/stdlib/data/Function";
import { Predicate } from "@tsplus/stdlib/data/Predicate";
/**
 * Dies with specified `unknown` if the predicate fails.
 * @tsplus fluent ets/STM filterOrDieWith
 * @tsplus location "@effect/core/stm/STM/operations/filterOrDieWith"
 */
export declare function filterOrDieWith_<R, E, A, B extends A>(self: STM<R, E, A>, f: Refinement<A, B>, dieWith: (a: Exclude<A, B>) => unknown): STM<R, E, B>;
export declare function filterOrDieWith_<R, E, A>(self: STM<R, E, A>, f: Predicate<A>, dieWith: (a: A) => unknown): STM<R, E, A>;
/**
 * Dies with specified `unknown` if the predicate fails.
 * @tsplus static ets/STM/Aspects filterOrDieWith
 * @tsplus location "@effect/core/stm/STM/operations/filterOrDieWith"
 */
export declare function filterOrDieWith<A, B extends A>(f: Refinement<A, B>, dieWith: (a: Exclude<A, B>) => unknown): <R, E>(self: STM<R, E, A>) => STM<R, E, B>;
export declare function filterOrDieWith<A>(f: Predicate<A>, dieWith: (a: A) => unknown): <R, E>(self: STM<R, E, A>) => STM<R, E, A>;
//# sourceMappingURL=filterOrDieWith.d.ts.map