import React from "react"; interface Props { onLifecycleError?: (error: unknown, componentStack: string) => void; children: React.ReactElement | string | number | null; } interface State { error: Error | null; } export declare class WithErrorBoundary extends React.PureComponent { static displayName: string; constructor(props: Props); componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; render(): string | number | React.JSX.Element | null; } export {};