1 | import { SECRET_INTERNAL_getScopeContext as getScopeContext } from 'jotai';
|
2 | import type { Atom } from '../core/atom';
|
3 | type Scope = NonNullable<Parameters<typeof getScopeContext>[0]>;
|
4 | type AnyAtomValue = unknown;
|
5 | type AnyAtom = Atom<AnyAtomValue>;
|
6 | type AtomsValues = Map<AnyAtom, AnyAtomValue>;
|
7 | type AtomsDependents = Map<AnyAtom, Set<AnyAtom>>;
|
8 | type AtomsSnapshot = Readonly<{
|
9 | values: AtomsValues;
|
10 | dependents: AtomsDependents;
|
11 | }>;
|
12 | export declare function useAtomsSnapshot(scope?: Scope): AtomsSnapshot;
|
13 | export {};
|