import { FiberRef } from "@effect/core/io/FiberRef/definition";
import { Effect } from "@effect/core/io/Effect/definition";
/**
 * Atomically sets the value associated with the current fiber and returns
 * the old value.
 * @tsplus fluent ets/FiberRef getAndSet
 * @tsplus location "@effect/core/io/FiberRef/operations/getAndSet"
 */
export declare function getAndSet_<A, P>(self: FiberRef<A, P>, value: A, __tsplusTrace?: string): Effect<never, never, A>;
/**
 * Atomically sets the value associated with the current fiber and returns
 * the old value.
 * @tsplus static ets/FiberRef/Aspects getAndSet
 * @tsplus pipeable ets/FiberRef getAndSet
 * @tsplus location "@effect/core/io/FiberRef/operations/getAndSet"
 */
export declare const getAndSet: <A>(value: A, __tsplusTrace?: string) => <P>(self: import("../definition").FiberRef<A, P>) => import("../../Effect").Effect<never, never, A>;
//# sourceMappingURL=getAndSet.d.ts.map