import { SetAtom, WritableAtom } from './atom'; import { getScopeContext } from './contexts'; import { ExtractAtomResult, ExtractAtomUpdate } from './typeUtils'; declare type Scope = NonNullable[0]>; export declare function useSetAtom>(atom: WritableAtom, scope?: Scope): SetAtom; export declare function useSetAtom>>(atom: AtomType, scope?: Scope): SetAtom, ExtractAtomResult>; export {}; declare type Awaited = T extends Promise ? V : T;