import React, { ErrorInfo, PropsWithChildren } from "react"; export interface ErrorBoundaryProps { /** * When true, renders a full-page centered error screen instead of the * compact inline error. Intended for wrapping top-level app roots or * major route sections. */ fullPage?: boolean; /** * Optional callback invoked when the user clicks "Try again". If provided, * the boundary resets its error state and calls this handler. If omitted, * the "Try again" button resets the boundary state, re-mounting children. */ onReset?: () => void; } interface ErrorBoundaryState { error: Error | null; showDetails: boolean; } export declare class ErrorBoundary extends React.Component, ErrorBoundaryState> { constructor(props: PropsWithChildren); static getDerivedStateFromError(error: Error): { error: Error; }; componentDidCatch(error: Error, _errorInfo: ErrorInfo): void; private handleReset; private handleReload; private toggleDetails; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | React.JSX.Element | null | undefined; private renderInline; private renderFullPage; } export {};