/** * ErrorBoundary * Catches React errors and displays fallback UI */ import React, { type ReactNode } from 'react'; export interface ErrorBoundaryProps { children: ReactNode; fallback?: (error: Error, reset: () => void) => ReactNode; onError?: (error: Error, errorInfo: React.ErrorInfo) => void; } interface ErrorBoundaryState { hasError: boolean; error: Error | null; } /** * Error boundary component for catching rendering errors * Displays fallback UI and allows retry */ export declare class ErrorBoundary extends React.Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): ErrorBoundaryState; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; resetError: () => void; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable> | import("react/jsx-runtime").JSX.Element; } /** * Wrapper component for using ErrorBoundary with hooks * Allows functional components to use error boundary pattern */ export declare const withErrorBoundary:

(Component: React.ComponentType

, fallback?: ErrorBoundaryProps["fallback"], onError?: ErrorBoundaryProps["onError"]) => { (props: P): import("react/jsx-runtime").JSX.Element; displayName: string; }; export {}; //# sourceMappingURL=ErrorBoundary.d.ts.map