import { Component, ComponentType, ErrorInfo, ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from "react"; interface Props { children?: ReactNode; name?: string; trackView?: boolean; } interface State { hasError: boolean; error?: Error; errorInfo?: ErrorInfo; } /** * Error Boundary for internal use. */ export declare class ErrorBoundary extends Component { static getDerivedStateFromError(error: Error): State; state: State; componentDidMount(): void; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; resetState: () => void; render(): ReactNode; } export declare function withErrorBoundary(component: ComponentType, name?: string, trackView?: boolean): ForwardRefExoticComponent & RefAttributes>; export {}; //# sourceMappingURL=error-boundary.d.ts.map