import React from 'react'; import PropTypes from 'prop-types'; export default class ErrorBoundary extends React.Component { state: { hasError: boolean; }; static propTypes: { children: PropTypes.Requireable; }; constructor(props: any); static getDerivedStateFromError(error: any): { hasError: boolean; error: any; }; render(): any; }