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 |
|
13 |
|
14 |
|
15 | type DeprecatedIterableSnapshot = Iterable<readonly [AnyAtom, AnyAtomValue]>;
|
16 | export declare function useGotoAtomsSnapshot(scope?: Scope): (snapshot: AtomsSnapshot | DeprecatedIterableSnapshot) => void;
|
17 | export {};
|