import { UseSelectorOptions } from "./useSelector.js";
import { Atom } from "@tanstack/store";
import { Accessor } from "solid-js";
//#region src/useAtom.d.ts
/**
* Returns the current atom accessor together with a setter.
*
* Use this when a component needs to both read and update the same writable
* atom.
*
* @example
* ```tsx
* const [count, setCount] = useAtom(countAtom)
*
* return (
*
* )
* ```
*/
declare function useAtom(atom: Atom, options?: UseSelectorOptions): [Accessor, Atom['set']];
//#endregion
export { useAtom };
//# sourceMappingURL=useAtom.d.ts.map