import { Component, ComponentType, ReactNode } from "react"; declare type Props = { children: ReactNode; reportError: (error: Error, details: { componentStack: string; }) => void; } & ({ component: ComponentType<{ reset: () => void; }>; } | { fallback: ReactNode; }); export declare class ErrorBoundary extends Component { state: { error: Error | undefined; }; componentDidCatch(error: Error, details: { componentStack: string; }): void; componentDidMount(): void; componentWillUnmount(): void; reset: () => void; render(): ReactNode; } export {};