import type { Application } from '../specs'; import DatasetStore from './datasets'; import type { GlobalModel } from './global'; import GlobalStore from './global'; import LayersStore from './layers'; import MapStore from './map'; import WidgetsStore from './widgets'; export default class StateManager { datasetStore: DatasetStore; mapStore: MapStore; layersStore: LayersStore; widgetsStore: WidgetsStore; globalStore: GlobalStore; private lastApplication; constructor(initialGlobalState?: GlobalModel); initState(application: Application): void; initGlobalState(global: GlobalModel): void; }