import { IPlugin, IConfig as RootConfig } from 'net4j'; import { AxiosResponse, AxiosRequestConfig, AxiosError } from 'axios'; declare type Formatter = (res: AxiosResponse) => any; declare type PreFormatter = (config: RootConfig) => any; declare type ErrorFormatter = (e: AxiosError) => any; export interface FormatterConfig extends RootConfig { formatter?: Formatter; preFormatter?: PreFormatter; errorFormatter?: ErrorFormatter; } declare class FormatterPlugin implements IPlugin { private formatter?; private preFormatter?; private errorFormatter?; constructor(config?: FormatterConfig); beforeRequest(_e: AxiosError, config: AxiosRequestConfig): any; afterRequest(e: AxiosError, response: T): any; } export default FormatterPlugin;