import { AxiosInstance } from "axios"; import { ResponseHandleFunction } from "./../types/responseHandleFunction"; import { ForestInstance } from "index"; import { CatchFunction } from "../types/catchFunction"; import { Prefix } from "../types/route"; import { NoPayloadHTTPMethods } from "./noPayload"; import { WithPayloadHTTPMethods } from "./withPayload"; export declare class RequestFactory { private axios; private prefix; private catchFunction; private responseHandleFunction; constructor(axios: AxiosInstance, prefix: Prefix, responseHandleFunction?: ResponseHandleFunction, catchFunction?: CatchFunction); noPayloadRequest: (method: NoPayloadHTTPMethods) => (route?: import("../types/route").Route | undefined, config?: import("axios").AxiosRequestConfig | undefined) => () => Promise; noPayloadRequestByParam: (method: NoPayloadHTTPMethods) => (route?: import("../types/route").Route | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (param: ParamType) => Promise>; withPayloadRequest: (method: WithPayloadHTTPMethods) => (route?: import("../types/route").Route | undefined, key?: string | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (data: PayloadType) => Promise>; withPayloadRequestByParam: (method: WithPayloadHTTPMethods) => (route?: import("../types/route").Route | undefined, key?: string | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (param: ParamType, data: PayloadType) => Promise>; } export declare const createRequestMethods: (prefix: string, forestInstance: ForestInstance, responseHandleFunction?: ResponseHandleFunction | undefined, catchFunction?: CatchFunction | undefined) => { get: (route?: import("../types/route").Route | undefined, config?: import("axios").AxiosRequestConfig | undefined) => () => Promise; getByParam: (route?: import("../types/route").Route | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (param: ParamType) => Promise>; delete: (route?: import("../types/route").Route | undefined, config?: import("axios").AxiosRequestConfig | undefined) => () => Promise; deleteByParam: (route?: import("../types/route").Route | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (param: ParamType) => Promise>; post: (route?: import("../types/route").Route | undefined, key?: string | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (data: PayloadType) => Promise>; put: (route?: import("../types/route").Route | undefined, key?: string | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (param: ParamType_1, data: PayloadType_1) => Promise>; patch: (route?: import("../types/route").Route | undefined, key?: string | undefined, config?: import("axios").AxiosRequestConfig | undefined) => (param: ParamType_1, data: PayloadType_1) => Promise>; };