import { AxiosRequestConfig, AxiosResponse } from "axios"; import QueueStatus from "../enums/QueueStatus"; import { ImmutableStoreValue } from "./ValueMap"; export type WithCallConfig = { progressHandlers?: boolean | { [key: number]: any }; config?: AxiosRequestConfig; reducer?: WithCallReducer; }; export type WithCallReducer = (value: AxiosResponse, store: any, queueKey: string) => any; export type QueueEntry = { key: string; status: QueueStatus; value: ImmutableStoreValue; networkCall: Function; reducer?: Function }; type NetworkQueue = { [key: string]: QueueEntry; }; export default NetworkQueue;