import { AxiosResponse, AxiosRequestConfig } from 'axios'; import { EverclearError } from '../types'; export declare const delay: (ms: number) => Promise; export declare class AxiosQueryError extends EverclearError { constructor(url: string, method: 'get' | 'post', data: any, errorObj: any); } export declare const axiosPost: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig, numAttempts?: number, retryDelay?: number) => Promise; export declare const axiosGet: , D = any>(url: string, data?: D | undefined, numAttempts?: number, retryDelay?: number) => Promise; /** * Returns domain name from url string * @param url The http or https string * @returns https://api.thegraph.com/subgraphs/name... => api.thegraph.com */ export declare const parseHostname: (url: string) => string | null; export declare const formatUrl: (_url: string, endpoint: string, identifier?: string) => string; //# sourceMappingURL=axios.d.ts.map