import React from 'react'; type State = { readonly error: Error | null; readonly errorInfo: React.ErrorInfo | null; }; type Props = { readonly children: React.ReactNode; readonly fallback?: React.ReactNode | undefined | null; }; declare class ErrorBoundary extends React.Component { constructor(props: Props); componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; render(): string | number | boolean | React.JSX.Element | Iterable | null | undefined; } export default ErrorBoundary;