1 | import { useSetAtom } from 'jotai/react';
|
2 | import { Getter, Setter } from 'jotai/vanilla';
|
3 | type Options = Parameters<typeof useSetAtom>[1];
|
4 | export declare function useAtomCallback<Result, Args extends unknown[]>(callback: (get: Getter, set: Setter, ...arg: Args) => Result, options?: Options): (...args: Args) => Result;
|
5 | export {};
|
6 | declare type Awaited<T> = T extends Promise<infer V> ? V : T; |
\ | No newline at end of file |