import { AxiosInstance, AxiosRequestConfig, InternalAxiosRequestConfig } from "axios"; import { FastifyPluginAsync } from "fastify"; declare module "fastify" { interface FastifyInstance { axios: AxiosInstance & Record; } } export interface AxiosInterceptors { request?: (value: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise; errorRequest?: (error: unknown) => unknown; response?: (value: any) => any | Promise; errorResponse?: (error: unknown) => unknown; } export interface FastifyAxiosClientOptions extends AxiosRequestConfig { interceptors?: AxiosInterceptors; } export interface FastifyAxiosOptions extends AxiosRequestConfig { clients?: Record; interceptors?: AxiosInterceptors; } declare const _default: FastifyPluginAsync; export default _default;