import React, { ReactElement } from 'react'; type IErrorBoundryState = { hasError: boolean; error: Error | null; }; type IErrorBoundryProps = { children: ReactElement; }; export declare class ErrorBoundary extends React.Component { constructor(props: IErrorBoundryProps); static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; componentDidCatch(error: Error): void; render(): React.JSX.Element; } export {};