import { Component } from 'react'; import type { ContextType, ErrorInfo, ReactNode } from 'react'; import { RouterHostContext } from './host.js'; export declare function isNotFoundError(error: unknown): boolean; /** * Catches errors from its children and shows a fallback page. Used by the * default root layout; apps can wrap their own root with it too. */ export declare class ErrorBoundary extends Component<{ children: ReactNode; }, { failure?: { error: unknown; } | undefined; }> { static contextType: import("react").Context; context: ContextType; private failedRoute; state: { failure?: { error: unknown; } | undefined; }; componentDidCatch(_error: Error, _info: ErrorInfo): void; componentDidUpdate(): void; static getDerivedStateFromError(error: unknown): { failure: { error: unknown; }; }; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | import("react").JSX.Element | null | undefined; }