1 | import type { Atom } from './atom';
|
2 | import { getScopeContext } from './contexts';
|
3 | import type { ExtractAtomValue } from './typeUtils';
|
4 | type Scope = NonNullable<Parameters<typeof getScopeContext>[0]>;
|
5 | export declare function useAtomValue<Value>(atom: Atom<Promise<Value>>, scope?: Scope): Value;
|
6 | export declare function useAtomValue<Value>(atom: Atom<Value>, scope?: Scope): Awaited<Value>;
|
7 | export declare function useAtomValue<AtomType extends Atom<any>>(atom: AtomType, scope?: Scope): Awaited<ExtractAtomValue<AtomType>>;
|
8 | export {};
|