import type { ReactNode } from 'react'; import { Component } from 'react'; export interface ErrorBoundaryProps { children: ReactNode; /** Optional fallback UI to render on error. When omitted, a default ErrorCard is shown. */ fallback?: ReactNode; /** Optional title for the default error card (used when no fallback is provided) */ title?: string; /** Optional callback when an error is caught */ onCatch?: (error: unknown, retry: () => void) => void; } export interface ErrorBoundaryState { hasError: boolean; error: unknown; } export declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: unknown): ErrorBoundaryState; retry(): void; componentDidCatch(error: unknown, errorInfo: unknown): void; render(): ReactNode; } //# sourceMappingURL=error-boundary.d.ts.map