import { TSet } from "@effect/core/stm/TSet/definition";
import { STM } from "@effect/core/stm/STM/definition/base";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
import { Chunk } from "@tsplus/stdlib/collections/Chunk/definition";
/**
 * Transactionally takes all matching values, or retries until there is at least one.
 * @tsplus fluent ets/TSet takeSomeSTM
 * @tsplus location "@effect/core/stm/TSet/operations/takeSomeSTM"
 */
export declare function takeSomeSTM_<A, B, R, E>(self: TSet<A>, pf: (a: A) => STM<R, Maybe<E>, B>): STM<R, E, Chunk<B>>;
/**
 * Transactionally takes all matching values, or retries until there is at least one.
 * @tsplus static ets/TSet/Aspects takeSomeSTM
 * @tsplus pipeable ets/TSet takeSomeSTM
 * @tsplus location "@effect/core/stm/TSet/operations/takeSomeSTM"
 */
export declare const takeSomeSTM: <A, B, R, E>(pf: (a: A) => import("../../STM").STM<R, import("@tsplus/stdlib/data/Maybe").Maybe<E>, B>) => (self: import("../definition").TSet<A>) => import("../../STM").STM<R, E, import("@tsplus/stdlib/collections/Chunk").Chunk<B>>;
//# sourceMappingURL=takeSomeSTM.d.ts.map