import type { Draft } from 'immer'; import { useAtom } from 'jotai'; import type { WritableAtom } from 'jotai'; declare type Scope = NonNullable[1]>; 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]; export {};