import * as React from 'react';
export interface ErrorBoundaryProps {
    errorNode?: React.ReactNode | ((error: Error | null, reload?: () => void) => React.ReactNode);
    errorClassName?: string;
    children?: React.ReactNode;
}
interface ErrorBoundaryState {
    hasError: boolean;
    error: Error | null;
}
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
    constructor(props: ErrorBoundaryProps);
    reload: () => void;
    static getDerivedStateFromError(error: Error): {
        hasError: boolean;
        error: Error;
    };
    componentDidCatch(_error: Error, errorInfo: React.ErrorInfo): void;
    render(): any;
}
export default ErrorBoundary;
