import { CatchFunction } from "types/catchFunction"; import { ResponseHandleFunction } from "./responseHandleFunction"; import { createRequestMethods } from "../RequestFactory"; import { Key } from "./payload"; import { Route } from "./route"; import { AxiosRequestConfig } from "axios"; export declare type ServiceMethods = ReturnType; export interface ServiceConfig { routes?: { getAll?: Route; getById?: Route; deleteAll?: Route; deleteById?: Route; post?: Route; patch?: Route; put?: Route; }; requestConfig?: AxiosRequestConfig; requestConfigByMethod?: { getAll?: AxiosRequestConfig; getById?: AxiosRequestConfig; deleteAll?: AxiosRequestConfig; deleteById?: AxiosRequestConfig; post?: AxiosRequestConfig; patch?: AxiosRequestConfig; put?: AxiosRequestConfig; }; payloadKey?: Key; payloadKeyByMethod?: { post?: Key; patch?: Key; put?: Key; }; responseHandleFunction?: ResponseHandleFunction; catchFunction?: CatchFunction; }