type SubscriberFunc = (newState: S) => void; export interface Atom { set(newValue: S): void; subscriptions: Array>; } export declare function createAtom(): Atom; export declare function useAtom(atom: Atom, initialState: S | (() => S)): [S, SubscriberFunc]; export declare function useAtom(atom: Atom): [S | undefined, SubscriberFunc]; export {};