/// <reference types="react" />
import { IErrorBoundaryFallbackComponentProps } from './ErrorBoundary';
export interface ICatchErrorOption {
    onError?: (error: Error, componentStack: string) => void;
    FallbackComponent?: React.ComponentType<IErrorBoundaryFallbackComponentProps>;
}
declare function catchError({ FallbackComponent, onError }?: ICatchErrorOption): <P>(BaseComponent: import("react").ComponentType<P>) => (props: P) => JSX.Element;
export default catchError;
