import { Component } from 'react';
import type { ErrorBoundaryProps, ErrorBoundaryState } from './ErrorBoundary.types';
/**
* Error boundary component that catches React errors in child components.
* Displays a fallback UI when an error occurs and optionally calls an error handler.
*
* @example
* } onError={(error) => logError(error)}>
*
*
*/
export declare class ErrorBoundary extends Component {
constructor(props: ErrorBoundaryProps);
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
render(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined;
}