import { ResponseHandleFunction } from "./../types/responseHandleFunction"; import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios"; import { BaseParamType, Route } from "../types/route"; import { CatchFunction } from "types/catchFunction"; export declare type NoPayloadHTTPMethods = "get" | "delete" | "head" | "options"; export declare const noPayloadRequestMethods: Record; export interface NoPayloadRequestFactoryProps { catchFunction?: CatchFunction; responseHandleFunction?: ResponseHandleFunction; axios: AxiosInstance; prefix: string; method: NoPayloadHTTPMethods; } /** * Util Method For Sending HTTP Requests * @param axios - Axios Instance * @param prefix - Request Route Prefix * @param method - HTTP Method without Payload * @returns - Request Function of selected method with route: "prefix/route" */ export declare const noPayloadRequest: ({ axios, prefix, method, catchFunction, responseHandleFunction, }: NoPayloadRequestFactoryProps) => (route?: Route | undefined, config?: AxiosRequestConfig | undefined) => () => Promise; /** * Util Method For Sending Requests * @param axios - Axios Instance * @param prefix - Request Route Prefix * @returns - Request Function of selected method with route: "prefix/route/:param" */ export declare const noPayloadRequestByParam: ({ axios, prefix, method, catchFunction, responseHandleFunction, }: NoPayloadRequestFactoryProps) => (route?: Route | undefined, config?: AxiosRequestConfig | undefined) => (param: ParamType) => Promise>;