import React from 'react'; interface ErrorBoundaryState { hasError: boolean; error: Error | null; errorId: string | null; } interface ErrorBoundaryProps { children: React.ReactNode; fallback?: React.ComponentType; onError?: (error: Error, errorInfo: React.ErrorInfo) => void; } interface ErrorFallbackProps { error: Error; errorId: string | null; resetError: () => void; } export declare class ErrorBoundary extends React.Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): Partial; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; resetError: () => void; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined; } export declare const useErrorHandler: () => (error: Error) => never; export type { ErrorBoundaryProps, ErrorFallbackProps };