import React, { Component } from "react";
interface PropsType {
    children?: React.ReactNode;
}
interface StatesType {
    hasError: boolean;
    errCount: number;
}
/**
 * @description: 错误边界组件;
 * notification引导用户反馈问题
 */
declare class ErrorBoundary extends Component<PropsType, StatesType> {
    state: {
        hasError: boolean;
        errCount: number;
    };
    static getDerivedStateFromError(): {
        hasError: boolean;
    };
    componentDidCatch(e: Error): void;
    render(): React.ReactNode;
}
export default ErrorBoundary;
