UNPKG

contentful-management

Version:
8 lines (7 loc) 825 B
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; export declare function get<T = any>(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig): Promise<T>; export declare function patch<T = any>(http: AxiosInstance, url: string, payload?: any, config?: RawAxiosRequestConfig): Promise<T>; export declare function post<T = any>(http: AxiosInstance, url: string, payload?: any, config?: RawAxiosRequestConfig): Promise<T>; export declare function put<T = any>(http: AxiosInstance, url: string, payload?: any, config?: RawAxiosRequestConfig): Promise<T>; export declare function del<T = any>(http: AxiosInstance, url: string, config?: RawAxiosRequestConfig): Promise<T>; export declare function http<T = any>(http: AxiosInstance, url: string, config?: Omit<RawAxiosRequestConfig, 'url'>): Promise<T>;