import type { WritableAtom } from 'jotai/vanilla'; import { RESET } from './constants'; type SetStateActionWithReset = Value | typeof RESET | ((prev: Value) => Value | typeof RESET); type WithInitialValue = { init: Value; }; export declare function atomWithReset(initialValue: Value): WritableAtom ], void> & WithInitialValue; export {}; declare type Awaited = T extends Promise ? V : T;