import { ObservableMap } from 'mobx'; import ActionMessage from './interfaces/ActionMessage'; import DispatchFunction from './interfaces/DispatchFunction'; import Subscriber from './interfaces/Subscriber'; import ActionContext from './legacy/ActionContext'; import ActionFunction from './legacy/ActionFunction'; export interface GlobalContext { schemaVersion: number; rootStore: ObservableMap; nextActionId: number; subscriptions: { [key: string]: Subscriber[]; }; dispatchWithMiddleware: DispatchFunction; currentMutator: string | null; legacyInDispatch: number; legacyDispatchWithMiddleware: (action: ActionFunction, actionType: string, args: IArguments, actionContext: ActionContext) => Promise | void; legacyTestMode: boolean; } export declare function __resetGlobalContext(): void; export declare function ensureGlobalContextSchemaVersion(): void; export declare function getGlobalContext(): GlobalContext;