import { Component, type ErrorInfo, type ReactNode } from "react"; interface ErrorBoundaryProps { fallback: ReactNode; children: ReactNode; } interface ErrorBoundaryState { hasError: boolean; } export declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(_: Error): ErrorBoundaryState; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; render(): ReactNode; } export {}; //# sourceMappingURL=error-boundary.d.ts.map