import { Atom, SetStateAction, WritableAtom } from 'jotai'; import { RESET } from './constants'; type Read = Atom['read']; export declare function atomWithDefault(getDefault: Read>): WritableAtom | typeof RESET>; export declare function atomWithDefault(getDefault: Read>): WritableAtom | typeof RESET>; export declare function atomWithDefault(getDefault: Read): WritableAtom | typeof RESET>; export {}; declare type Awaited = T extends Promise ? V : T;