type ErrorBoundaryProps = { readonly error?: ErrorType; readonly status?: InfoType; readonly children: any; readonly info?: string; }; type ErrorBoundaryState = { status: string | null | undefined; error: ErrorType | null | undefined; info: InfoType | null | undefined; }; import React from "react"; import type { ErrorType, InfoType } from "./types"; export declare const setOnCaptureError: (cb: (error: any) => void) => void; declare class ErrorBoundary extends React.Component { handleKey: (event: KeyboardEvent) => void; refresh: () => void; componentDidCatch(error: ErrorType, info: InfoType): void; constructor(props: ErrorBoundaryProps); render(): any; } export default ErrorBoundary;