import React from 'react'; interface ErrorBoundaryProps { children: React.ReactNode; fallback?: React.ReactNode; } interface ErrorBoundaryState { hasError: boolean; } /** * Root error boundary for the hydrated `#app` tree. React 19 still has no * function-component equivalent, so this stays a class. A throw in any route or * extension component renders the fallback instead of blanking the whole app, * and the error is surfaced through the client reporter. */ export declare class ErrorBoundary extends React.Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(): ErrorBoundaryState; componentDidCatch(error: Error, info: React.ErrorInfo): void; render(): React.ReactNode; } export {};