1 | import { SetAtom, WritableAtom } from './atom';
|
2 | import { getScopeContext } from './contexts';
|
3 | import { ExtractAtomResult, ExtractAtomUpdate } from './typeUtils';
|
4 | type Scope = NonNullable<Parameters<typeof getScopeContext>[0]>;
|
5 | export declare function useSetAtom<Value, Update, Result extends void | Promise<void>>(atom: WritableAtom<Value, Update, Result>, scope?: Scope): SetAtom<Update, Result>;
|
6 | export declare function useSetAtom<AtomType extends WritableAtom<any, any, void | Promise<void>>>(atom: AtomType, scope?: Scope): SetAtom<ExtractAtomUpdate<AtomType>, ExtractAtomResult<AtomType>>;
|
7 | export {};
|
8 | declare type Awaited<T> = T extends Promise<infer V> ? V : T; |
\ | No newline at end of file |