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