import React from 'react'; import { Atom, WritableAtom, AnyAtom } from './types'; export declare type AtomState = { error?: Error; promise?: Promise; value: Value; }; declare type State = Map; export declare type PartialState = State; export declare type Actions = { add: (id: symbol, atom: Atom, partialState?: PartialState) => void; del: (id: symbol) => void; read: (state: State, atom: Atom) => readonly [AtomState, PartialState]; write: (atom: WritableAtom, update: Update) => void; }; export declare const ActionsContext: React.Context; export declare const StateContext: React.Context; export declare const Provider: React.FC; export {};