import { AxiosPromise, AxiosRequestConfig } from 'axios'; declare type IParam = { [Property in keyof Type]?: Type[Property]; }; export declare const getById: (path: string) => (baseURL: string) => (id: number | string) => AxiosPromise; export declare const findNested: (baseURL: string) => (...urlSegments: any) => (params?: IParam) => AxiosPromise; export declare const findAll: (path: string) => (baseURL: string) => () => AxiosPromise; export declare const find: (path: string) => (baseURL: string) => (params: IParam) => AxiosPromise; export declare const create: (path: string) => (baseURL: string) => (data: T) => AxiosPromise; export declare const createNested: (path: string) => (baseURL: string) => (nestedPath: string) => (id: number | string, data: T) => AxiosPromise; export declare const getBaseFunctions: (path: string) => ({ url, }: AxiosRequestConfig) => { find: (params: IParam) => AxiosPromise; findAll: () => AxiosPromise; getById: (id: number | string) => AxiosPromise; create: (data: T) => AxiosPromise; findNested: (...urlSegments: any) => (params?: IParam) => AxiosPromise; }; export {};