import type { ErrorInfo, ReactNode } from "react"; import { Component } from "react"; interface ErrorBoundaryProps { children: ReactNode; fallback?: ReactNode; onError?: (error: Error, errorInfo: ErrorInfo) => void; } interface ErrorBoundaryState { hasError: boolean; error?: Error; } /** * Error Boundary component that catches JavaScript errors in the component tree * and integrates with the template error system */ export declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): ErrorBoundaryState; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; render(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined; } export {};