import React, { type ComponentType, type PropsWithChildren } from 'react'; import { type Props as FallbackComponentProps } from './FallbackComponent'; export type Props = PropsWithChildren<{ FallbackComponent: ComponentType; onError?: (error: Error, stackTrace: string) => void; }>; type State = { error: Error | null; }; declare class ErrorBoundary extends React.Component { state: State; static defaultProps: { FallbackComponent: ComponentType; }; static getDerivedStateFromError(error: Error): State; componentDidCatch(error: Error, info: { componentStack: string; }): void; resetError: () => void; render(): string | number | bigint | boolean | React.JSX.Element | Iterable | Promise> | Iterable | null | undefined> | null | undefined; } export default ErrorBoundary; //# sourceMappingURL=index.d.ts.map