UNPKG

easy-pix

Version:

Pix payments made easy for developers build arround payment gateways

15 lines (14 loc) 847 B
import { AxiosRequestConfig, CreateAxiosDefaults } from 'axios'; import { IHttpClient, IHttpClientResponse } from './interfaces'; export declare class AxiosHttpClient implements IHttpClient { private readonly fetcher; constructor(config?: CreateAxiosDefaults); private handleResponseError; put<T, D>(url: string, data: D, config?: AxiosRequestConfig): Promise<IHttpClientResponse<T>>; patch<T, D>(url: string, data: D, config?: AxiosRequestConfig): Promise<IHttpClientResponse<T>>; delete<T>(url: string, config?: AxiosRequestConfig): Promise<IHttpClientResponse<T>>; get<T>(url: string, config?: AxiosRequestConfig): Promise<IHttpClientResponse<T>>; post<T, D>(url: string, data: D, config?: AxiosRequestConfig): Promise<IHttpClientResponse<T>>; } declare const _default: AxiosHttpClient; export default _default;