Public types
Stately exports the most important types from the package root so plugin authors and app code can keep strong inference all the way through the store lifecycle.
Store and manager types
StateManager— the runtime container that owns plugins, definitions, and store instancesStateManagerPlugin— a plugin function that can augment a store instanceStoreDefinition— the callable definition returned bydefineStore()StoreInstance— the fully materialized store typeStoreState,StoreGetters,StoreActions— helper aliases used by inference
Store hook types
StoreMutationContext— payload passed to$subscribe()callbacksStoreActionHookContext— payload passed to$onAction()callbacks
StoreMutationContext exposes the store id, the store instance, the mutation type, and the payload when one exists.
StoreActionHookContext exposes the action name, arguments, and after() / onError() hooks.
Store option augmentation
DefineStoreOptionsBaseDefineSetupStoreOptionsHistoryStoreOptionsPersistStoreOptionsStoreCustomPropertiesStoreCustomStateProperties
These types exist so plugins can extend store definitions and store instances without losing IntelliSense.
Persistence types
PersistenceAdapterPersistOptionsPersistControllerPersistEnvelopePersistCompression
History, sync, and async types
HistoryControllerHistoryEntryTimeTravelControllerSyncMessageSyncTransportAsyncActionRegistryAsyncPluginOptionsConcurrencyMode
Most of these types are used indirectly through plugin options or store augmentation, but keeping them public means custom integrations can stay typed end-to-end.