import { Setter, WritableAtom } from 'jotai'; import { Scope } from '../core/atom'; declare type WriteGetter = Parameters['write']>[0]; declare type Callback = undefined extends Arg ? (arg?: Arg) => Result : (arg: Arg) => Result; export declare function useAtomCallback(callback: (get: WriteGetter, set: Setter, arg: Arg) => Promise, scope?: Scope): Callback, Arg>; export declare function useAtomCallback(callback: (get: WriteGetter, set: Setter, arg: Arg) => Result, scope?: Scope): Callback, Arg>; export {};