import { ServiceError } from '@escapenavigator/utils/dist/get-service-error'; import { AxiosResponse } from 'axios'; import { Reducer } from 'react'; import * as actions from '../actions/creators/api'; import { GenericActionCreator } from '../actions/types'; type Action = GenericActionCreator; export type State = { data: R | null; loading: boolean; error: ServiceError | null; response: AxiosResponse | null; statusOk: boolean | null; }; export declare const initialState: { data: any; loading: boolean; error: any; response: any; statusOk: any; }; export type ApiReducer = Reducer, Action>; export declare const apiReducer: (state: State, action: Action) => State; export {};