1 | import type { SetStateAction, WritableAtom } from 'jotai/vanilla';
|
2 | import { RESET } from './constants';
|
3 | type Read<Value, Args extends unknown[], Result> = WritableAtom<Value, Args, Result>['read'];
|
4 | export declare function atomWithDefault<Value>(getDefault: Read<Value, [SetStateAction<Value> | typeof RESET], void>): WritableAtom<Value, [SetStateAction<Value> | typeof RESET], void>;
|
5 | export {};
|