import React, { ErrorInfo, ReactNode } from "react"; interface ErrorBoundaryProps { children: ReactNode; onError?: (error: Error, errorInfo: ErrorInfo) => void; } interface ErrorBoundaryState { hasError: boolean; error: Error | null; errorInfo: ErrorInfo | null; } export declare class ErrorBoundary extends React.Component { static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; errorInfo: null; }; state: { hasError: boolean; error: null; errorInfo: null; }; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | React.JSX.Element | null | undefined; } export {};