import React from "react"; interface ErrorBoundaryProps { children: React.ReactNode; } interface ErrorBoundaryState { error: Error | undefined; } /** * Shows errors thrown from child components. */ declare class ErrorBoundary extends React.PureComponent { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): { error: Error; }; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined; } export default ErrorBoundary;