import { Component, type ComponentType, type ReactNode } from "react"; type Props = { children: ReactNode; reportError: (error: Error, details: { componentStack: string; }) => void; } & ({ component: ComponentType<{ error: Error; reset: () => void; }>; } | { fallback: ReactNode; } | { renderError: (props: { error: Error; reset: () => void; }) => ReactNode; }); export declare class ErrorBoundary extends Component { reset: () => void; state: { error: Error | undefined; }; componentDidCatch(error: Error, details: { componentStack: string; }): void; componentDidMount(): void; componentWillUnmount(): void; render(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined; } export {};