import { applyAuthErrorHandling } from './applyAuthErrorHandling';
import { createApiClient } from './createApiClient';
const platformApiBase = import.meta.env.VITE_APP_PLATFORM_API;
export const platformApi = {
    base: platformApiBase,
    revision: `${platformApiBase}/revision`,
    catalog: `${platformApiBase}/catalog`,
    editor: `${platformApiBase}/editor`,
};
export const parserApiBase = import.meta.env.VITE_APP_PARSER_API;
const api = applyAuthErrorHandling(createApiClient({ baseURL: platformApiBase }), { authErrorHandling: 'redirect' });
export { createApiClient } from './createApiClient';
export { applyAuthErrorHandling } from './applyAuthErrorHandling';
export { isHandledApiError, isHandledAuthError, markApiErrorHandled, markAuthErrorHandled, } from './apiHandledError';
export { dispatchApiError, dispatchServerApiError } from './dispatchApiError';
export default api;
