import type { Draft } from 'immer'; import type { WritableAtom } from 'jotai'; import type { Scope } from '../core/atom'; export declare function useImmerAtom>(anAtom: WritableAtom) => void, Result>, scope?: Scope): [Value, (fn: (draft: Draft) => void) => Result]; export declare function useImmerAtom>(anAtom: WritableAtom Value, Result>, scope?: Scope): [Value, (fn: (draft: Draft) => void) => Result];