UNPKG

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