import { Component } from 'react';
import type { PropsWithChildren, ReactNode } from 'react';
interface ErrorInfo {
    componentStack: string;
}
interface ErrorBoundaryProps {
    logError?: (error: Error, errorInfo: ErrorInfo) => void;
    fbComponent?: ReactNode;
}
interface ErrorBoundaryState {
    hasError: boolean;
    error: Error;
    errorInfo: ErrorInfo;
}
declare class ErrorBoundary extends Component<PropsWithChildren<ErrorBoundaryProps>, ErrorBoundaryState> {
    static defaultProps: ErrorBoundaryProps;
    constructor(props: ErrorBoundaryProps);
    componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
    renderDefaultFB(): ReactNode;
    render(): ReactNode;
}
export default ErrorBoundary;
