import React, { Component, ErrorInfo, ReactNode } from 'react'; type Props = { children: ReactNode; }; type State = { hasError: boolean; }; declare class ErrorBoundary extends Component { constructor(props: Props); componentDidCatch(error: Error, errorInfo: ErrorInfo): void; static getDerivedStateFromError(): State; reset(): void; render(): React.ReactNode; } export default ErrorBoundary;