1 | import { useAtom } from 'jotai';
|
2 | import type { PrimitiveAtom } from 'jotai';
|
3 | type Scope = NonNullable<Parameters<typeof useAtom>[1]>;
|
4 | export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a?: Action) => Value, scope?: Scope): [Value, (action?: Action) => void];
|
5 | export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a: Action) => Value, scope?: Scope): [Value, (action: Action) => void];
|
6 | export {};
|