import { TRef } from "@effect/core/stm/TRef/definition";
import { STM } from "@effect/core/stm/STM/definition/base";
/**
* Sets the value of the `TRef` and returns the old value.
* @tsplus static effect/core/stm/TRef.Aspects getAndSet
* @tsplus pipeable effect/core/stm/TRef getAndSet
* @tsplus location "@effect/core/stm/TRef/operations/getAndSet"
*/
export declare function getAndSet(value: A): (self: TRef) => STM;
//# sourceMappingURL=getAndSet.d.ts.map