1 | import { useAtom } from 'jotai';
|
2 | import type { Atom, WritableAtom } from 'jotai';
|
3 | type Scope = NonNullable<Parameters<typeof useAtom>[1]>;
|
4 | type DevtoolOptions = {
|
5 | name?: string;
|
6 | scope?: Scope;
|
7 | enabled?: boolean;
|
8 | };
|
9 | export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, options?: DevtoolOptions): void;
|
10 | export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, name?: string, scope?: Scope): void;
|
11 | export {};
|