1 | import type { Atom, ExtractAtomValue } from 'jotai/vanilla';
|
2 | import { useStore } from './Provider';
|
3 | type Store = ReturnType<typeof useStore>;
|
4 | type Options = {
|
5 | store?: Store;
|
6 | delay?: number;
|
7 | };
|
8 | export declare function useAtomValue<Value>(atom: Atom<Value>, options?: Options): Awaited<Value>;
|
9 | export declare function useAtomValue<AtomType extends Atom<any>>(atom: AtomType, options?: Options): Awaited<ExtractAtomValue<AtomType>>;
|
10 | export {};
|