import { Component, ErrorInfo, ReactNode } from 'react'; import { ErrorBoundaryProps } from './types'; type ErrorBoundaryState = { didCatch: true; error: Error; } | { didCatch: false; error: null; }; export declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): { didCatch: boolean; error: Error; }; resetErrorBoundary: (...args: unknown[]) => void; componentDidCatch(error: Error, info: ErrorInfo): void; componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void; render(): ReactNode; } export {};