import { UIStoreType } from '@ui-schema/react/UIStore'; import { UIStoreActions, UIStoreUpdaterData } from '@ui-schema/react/UIStoreActions'; type StoreActionHandlersMap = UIStoreActions> = { [Type in TActions['type']]?: (store: S, action: Extract) => S; }; /** * @todo simplify generics, can be done after the deprecated `effects` option is removed from actions in a future version */ export declare const createActionsReducer: = UIStoreActions>(handlersMap: StoreActionHandlersMap) => (actions: A[] | A) => (oldStore: S) => S; export declare const storeUpdater: (actions: UIStoreActions | UIStoreActions[]) => (oldStore: UIStoreType) => UIStoreType; export {};