import * as React from "react"; type Props = { children: React.ReactNode; metadata?: Record; onError?: (error: Error, info: any) => void; }; type State = { error: string; }; declare class ErrorBoundary extends React.Component { constructor(props: Props); componentDidCatch(error: Error, info: any): void; render(): React.ReactNode; } export default ErrorBoundary;