import React from "react"; interface ErrorBoundaryProps { /** View subtree protected by the boundary. */ children: React.ReactNode; /** Custom fallback when an error is caught. */ fallback?: React.ReactNode | ((error: Error) => React.ReactNode); /** Invoked when an error is caught. */ onError?: (error: Error, errorInfo: React.ErrorInfo) => void; } /** * Catches React errors in the view tree and renders a fallback instead of * crashing the iframe. */ export declare class ErrorBoundary extends React.Component { constructor(props: ErrorBoundaryProps); /** Records a render failure for the fallback render pass. */ static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; /** Renders the child tree or the configured error fallback. */ render(): string | number | bigint | boolean | React.JSX.Element | Iterable | Promise | React.ReactElement> | React.ReactPortal | null | undefined> | null | undefined; } export {};