1 | import type { Atom, SetStateAction, WritableAtom } from 'jotai';
|
2 | import { RESET } from './constants';
|
3 | type Read<Value> = Atom<Value>['read'];
|
4 | export declare function atomWithDefault<Value>(getDefault: Read<Value | Promise<Value>>): WritableAtom<Value, SetStateAction<Value> | typeof RESET>;
|
5 | export declare function atomWithDefault<Value>(getDefault: Read<Promise<Value>>): WritableAtom<Value, SetStateAction<Value> | typeof RESET>;
|
6 | export declare function atomWithDefault<Value>(getDefault: Read<Value>): WritableAtom<Value, SetStateAction<Value> | typeof RESET>;
|
7 | export {};
|