import React from 'react'; export type ErrorBoundaryFallbackProps = { error: unknown; reset: () => void; }; export type ErrorBoundaryProps = { children: React.ReactNode; /** Custom render function for fallback UI. */ fallback?: (props: ErrorBoundaryFallbackProps) => React.ReactNode; /** Optional callback invoked alongside `componentDidCatch`. */ onError?: (error: unknown, info: React.ErrorInfo) => void; /** * Source label forwarded to telemetry. Default `'runtime'`. Set to * `'remote'` for `RemoteOutlet`-level boundaries so dashboards can split * remote crashes from host crashes. */ source?: 'runtime' | 'remote'; }; type ErrorBoundaryState = { error: unknown | null; }; /** * Error Boundary that emits `JORVEL_ERROR_EVENT` so observability adapters * (`@jorvel/observability`) can capture render-time crashes. */ export declare class ErrorBoundary extends React.Component { state: ErrorBoundaryState; static getDerivedStateFromError(error: unknown): ErrorBoundaryState; componentDidCatch(error: unknown, info: React.ErrorInfo): void; reset: () => void; render(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined; } export {}; //# sourceMappingURL=error-boundary.d.ts.map