import { FiberRef } from "@effect/core/io/FiberRef/definition";
import { Effect } from "@effect/core/io/Effect/definition";
/**
 * Atomically modifies the `XFiberRef` with the specified function and
 * returns the old value.
 * @tsplus fluent ets/FiberRef getAndUpdate
 * @tsplus location "@effect/core/io/FiberRef/operations/getAndUpdate"
 */
export declare function getAndUpdate_<A, P>(self: FiberRef<A, P>, f: (a: A) => A, __tsplusTrace?: string): Effect<never, never, A>;
/**
 * Atomically modifies the `XFiberRef` with the specified function and
 * returns the old value.
 * @tsplus static ets/FiberRef/Aspects getAndUpdate
 * @tsplus pipeable ets/FiberRef getAndUpdate
 * @tsplus location "@effect/core/io/FiberRef/operations/getAndUpdate"
 */
export declare const getAndUpdate: <A>(f: (a: A) => A, __tsplusTrace?: string) => <P>(self: import("../definition").FiberRef<A, P>) => import("../../Effect").Effect<never, never, A>;
//# sourceMappingURL=getAndUpdate.d.ts.map