import { Component } from 'react'; import type { ErrorInfo, ReactNode } from 'react'; import type { GrafanaAgentErrorBoundaryProps, GrafanaAgentErrorBoundaryState } from './types'; export declare class GrafanaAgentErrorBoundary extends Component { state: GrafanaAgentErrorBoundaryState; constructor(props: GrafanaAgentErrorBoundaryProps); getErrorWithComponentStack(error: Error, errorInfo: ErrorInfo): Error; static getDerivedStateFromError(error: Error): GrafanaAgentErrorBoundaryState; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; componentDidMount(): void; componentWillUnmount(): void; resetErrorBoundary(): void; render(): ReactNode; }