import React from 'react'; import { Atom, WritableAtom, AnyAtom } from './types'; import { ImmutableMap } from './immutableMap'; export declare type AtomState = { readE?: Error; readP?: Promise; writeP?: Promise; value?: Value; }; declare type State = ImmutableMap; export declare type Actions = { add: (id: symbol, atom: Atom) => void; del: (id: symbol) => void; read: (state: State, atom: Atom) => AtomState; write: (atom: WritableAtom, update: Update) => void | Promise; }; export declare const ActionsContext: React.Context; export declare const StateContext: React.Context, AtomState>>; export declare const Provider: React.FC; export {};