import * as React from 'react'; declare type ErrorBoundaryProps = { children: React.ReactNode; }; declare type ErrorBoundaryState = { hasError: boolean; }; export declare class ErrorBoundary extends React.Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: any): { hasError: boolean; }; componentDidCatch(error: any, errorInfo: any): void; render(): string | number | boolean | Iterable | React.JSX.Element | null | undefined; } export {};