import { Component, JSX } from 'preact'; interface ErrorInfo { componentStack?: string; } interface ErrorBoundaryState { hasError: boolean; error: Error | null; errorInfo: ErrorInfo | null; } interface ErrorBoundaryProps { hostInstance: any; children?: preact.ComponentChildren; } declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): { hasError: boolean; }; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; render(): JSX.Element; } export default ErrorBoundary;