import { Component, ErrorInfo, ReactNode } from 'react'; interface Props { children?: ReactNode; errorTitle?: string; errorDescription?: string; onRetry?: () => void; hasContainer?: boolean; } interface State { error?: Error; hasError: boolean; } /** * ErrorBoundary component that catches errors in its children and displays a fallback UI. * In case of error name is ChunkLoadError it will display a different message. * When the `onRetry` callback is provided, the retry button will call it, so it can be used to reset internal state */ export declare class ErrorBoundary extends Component { static displayName: string; state: State; static getDerivedStateFromError(error: Error): State; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; render(): ReactNode; } export {};