declare class Api { private readonly api; private accessToken?; private loginPath; private loginApiPath; private tokenRefreshApiPath; private API_ROOT; constructor(); get(path: string, params?: any): Promise>; post(path: string, requestBody?: any): Promise>; put(path: string, requestBody?: any): Promise>; patch(path: string, requestBody?: any): Promise>; delete(path: string): Promise>; refreshToken(): Promise; silentRefreshTokenAndRetry(err: any): Promise>; login(payload: any): Promise; setAccessToken(token: string): void; getAccessToken(): Promise; setLoginPath(loginPath: string): void; } declare const API: Api; export default API;