declare const createApiFunction: (baseURL: string, baseHeaders?: object) => { Get: (endPoint: string, id?: any, params?: any) => Promise; Post: (endPoint: string, body: any, id?: any, params?: any, publicAPI?: boolean) => Promise; Put: (endPoint: string, body: any, id: any) => Promise; Patch: (endPoint: string, body: any, id: any, params?: any) => Promise; Delete: (endPoint: string, id: any) => Promise; }; export default createApiFunction;