import { Dispatch, Store, ActionCreator } from 'redux'; import { BaseAction } from 'types/base-redux.types'; import { State } from 'types/redux.types'; export declare function dispatchActions(dispatch: Dispatch, actionCreators: ActionCreator | ActionCreator[], response: any): void; export declare function apiMiddleware({ dispatch, getState }: Store): (next: Dispatch) => (action: any) => Promise; export default apiMiddleware;