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