import { ReactElement } from 'react'; import { AxiosError } from 'axios'; export declare type ErrorState = { statusText?: string; status?: string; }; export declare type ErrorHandlingType = { error: AxiosError | null; setError: (e?: AxiosError) => void; }; export declare const useAxiosErrorHandling: (onApiError?: (e: Error) => void) => ErrorHandlingType; export declare const formatAxiosError: (e: AxiosError) => ErrorState; interface ErrorPageProps { errorMessage?: string; } declare const ErrorPage: (props: ErrorPageProps) => ReactElement; export default ErrorPage;