import { Component, type ErrorInfo, type ReactNode } from "react"; interface ErrorBoundaryProps { children: ReactNode; fallback?: ReactNode; onDelete?: () => void; } interface ErrorBoundaryState { hasError: boolean; error: Error | null; } export declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): ErrorBoundaryState; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; handleDelete: () => void; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | import("react").JSX.Element | null | undefined; } export declare const ErrorFallback: ({ error, onDelete, }: { error: Error | null; onDelete?: () => void; }) => import("react").JSX.Element; export {}; //# sourceMappingURL=error-boundary.d.ts.map