import { Atom } from 'jotai'; declare type Awaited = T extends Promise ? Awaited : T; declare type Loadable = { state: 'loading'; } | { state: 'hasError'; error: unknown; } | { state: 'hasData'; data: Awaited; }; export declare function loadable(anAtom: Atom): Atom>; export {};