import { AnyAction, Reducer } from 'redux'; import { IDefinitionClassesRecord, IDefinitionsRecord } from '../typings/connection'; import { IDefinitionObjectWithModule } from '../typings/creator'; declare type ILoadingModule, DC extends IDefinitionClassesRecord> = { [K in keyof DC]: { [Key in keyof DC[K]['actions']]: boolean; }; }; declare type ILoadingModuleWithGlobal, DC extends IDefinitionClassesRecord> = ILoadingModule & { global: boolean; }; declare const getLoadingPlugin: () => { new , DC extends IDefinitionClassesRecord>(creators: DC): { getReducer(): Reducer, AnyAction>; beforeEffect(record: IDefinitionObjectWithModule): Generator; afterEffect(record: IDefinitionObjectWithModule): Generator; creators: DC; errorHandle(error: Error, record: IDefinitionObjectWithModule): Generator; }; }; export default getLoadingPlugin;