import { InterceptorManager } from './InterceptorManager'; import { AxiosAdapter, AxiosConfig, DefaultRequestConfig, HAxiosRequestConfig, HAxiosRequestConfigBase, HAxiosResponse } from './axios'; import { Headers, GaxiosError, GaxiosOptions } from 'gaxios'; import { Cancel, CancelToken } from './CancelToken'; export type { Cancel, Canceler, CancelToken, CancelTokenSource } from './CancelToken'; export * from './axios'; export { GaxiosError as AxiosError }; export type { HAxiosResponse as AxiosResponse }; export type { HAxiosRequestConfigBase as AxiosRequestConfig }; export type { HAxiosRequestConfig }; export type { DefaultRequestConfig }; export declare type Method = GaxiosOptions['method']; declare type HaxiosOptions = GaxiosOptions & { headers: Headers; adapter?: AxiosAdapter; compress?: boolean; }; export declare class AxiosWrapper { private gaxiosInstance; baseURL?: string; private transformAxiosConfigToGaxios; constructor(config?: AxiosConfig); get defaults(): HaxiosOptions; interceptors: { request: InterceptorManager; response: InterceptorManager; }; request = HAxiosRequestConfig>(requestParams: CONFIG): Promise>; get = DefaultRequestConfig>(url: string, config?: CONFIG): Promise>; getUri = HAxiosRequestConfig>(config: CONFIG): Promise>; delete = DefaultRequestConfig>(url: string, config?: CONFIG): Promise>; head = DefaultRequestConfig>(url: string, config?: CONFIG): Promise>; options = DefaultRequestConfig>(url: string, config?: CONFIG): Promise>; post = DefaultRequestConfig>(url: string, data?: INPUT, config?: CONFIG): Promise>; put = DefaultRequestConfig>(url: string, data?: INPUT, config?: CONFIG): Promise>; patch = DefaultRequestConfig>(url: string, data?: INPUT, config?: CONFIG): Promise>; setBaseURL(baseURL: string): void; setHeader(name: string, value: string): void; create(config?: AxiosConfig): AxiosInstance; isAxiosError(err: any): err is GaxiosError; CancelToken: typeof CancelToken; isCancel(err: any): err is Cancel; Cancel: typeof Cancel; static create(config?: AxiosConfig): AxiosInstance; } export declare type AxiosInstance = Omit & AxiosWrapper['request'] & { defaults: HaxiosOptions; } & { Cancel: typeof Cancel; }; declare const enrichedInstance: AxiosStatic; export declare type AxiosStatic = AxiosInstance; export default enrichedInstance;