import * as React from "react"; import { ErrorFallbackProps } from "./errorHandling"; export type ErrorBoundaryProps = { children: React.ReactNode; fallback?: React.ComponentType | null; }; export declare class ErrorBoundary extends React.Component { constructor(props: TProps); static getDerivedStateFromError(error: Error): { hasError: boolean; }; /** * Handle error behavior. Can be overridden by subclasses to customize error handling. * @param error - The error that was caught * @param info - React error boundary info containing component stack * @protected */ protected handleError(error: Error, info: { componentStack: string; }): void; componentDidCatch(error: Error, info: { componentStack: string; }): void; render(): import("react/jsx-runtime").JSX.Element | TProps["children"] | null; }