import React from 'react'; interface ErrorBoundaryState { hasError: boolean; error?: Error; } declare class ErrorBoundary extends React.Component { static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; static getDerivedStateFromProps(nextProps: any, state: any): { children: any; hasError: boolean; error: undefined; } | null; state: ErrorBoundaryState; renderError: (e: Error) => JSX.Element; render(): {} | null | undefined; } export default ErrorBoundary;