/// import { IErrorBoundaryFallbackComponentProps } from './ErrorBoundary'; export interface ICatchErrorOption { onError?: (error: Error, componentStack: string) => void; FallbackComponent?: React.ComponentType; } declare function catchError({ FallbackComponent, onError }?: ICatchErrorOption):

(BaseComponent: import("react").ComponentType

) => (props: P) => JSX.Element; export default catchError;