1 | import { Atom, WritableAtom } from 'jotai';
|
2 | import { Scope } from '../core/atom';
|
3 | interface DevtoolOptions {
|
4 | name?: string;
|
5 | scope?: Scope;
|
6 | enabled?: boolean;
|
7 | }
|
8 | export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, options?: DevtoolOptions): void;
|
9 | export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, name?: string, scope?: Scope): void;
|
10 | export {};
|