import React from "react"; interface Props { children: React.ReactNode; fallback?: React.ReactNode; /** * Optional callback fired when the user taps "Try Again". Use this * to clear any module-level state that contributed to the crash * (vault: `queryClient.clear()`, `KeyManager.lock()`, etc.). * Without this, a re-render against still-broken module state * would crash-loop the user with no escape. */ onReset?: () => void; } interface State { hasError: boolean; /** Bumped on every reset so children remount fresh — clears React * state inside the crashing subtree, not just the boundary's own * flag. Without this, "Try Again" only resets `hasError` and a * child whose component state is the root cause re-throws on the * next render. */ resetKey: number; } export declare class ErrorBoundary extends React.Component { state: State; static getDerivedStateFromError(): Partial; componentDidCatch(error: Error, info: React.ErrorInfo): void; private handleReset; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | React.JSX.Element; } export {}; //# sourceMappingURL=error-boundary.d.ts.map