import { WritableAtom } from 'jotai'; import type { NonPromise, NonFunction, SetStateAction, PrimitiveAtom } from './types'; export declare const useUpdateAtom: (anAtom: WritableAtom) => [Update] extends [never] ? () => void : (update: Update) => void; declare const RESET: unique symbol; export declare const atomWithReset: (initialValue: NonFunction>) => WritableAtom | ((prev: Value) => NonFunction)>; export declare const useResetAtom: (anAtom: WritableAtom) => (update: unknown) => void; export declare const useReducerAtom: (anAtom: WritableAtom>, reducer: (v: Value, a: Action) => NonFunction) => readonly [NonPromise, (action: Action) => void]; export declare const atomWithReducer: (initialValue: NonFunction>, reducer: (v: Value, a: Action) => Value) => WritableAtom; export {};