import React, { Component, type ReactNode } from "react";
interface ErrorBoundaryProps {
	children: ReactNode;
	errorMessage?: string;
	fallback?: ReactNode;
	onError?: (error: Error) => void;
}
interface ErrorBoundaryState {
	hasError: boolean;
	error: Error | null;
}
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
	state: ErrorBoundaryState;
	static getDerivedStateFromError(error: Error): ErrorBoundaryState;
	componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
	handleRetry: () => void;
	render(): ReactNode;
}
export {};
