import React, { ErrorInfo, PropsWithChildren, ReactNode } from 'react';
export default class ErrorBlock extends React.Component<PropsWithChildren<{
    customNode?: ReactNode;
    onError?: (error: Error, errorInfo: ErrorInfo) => void;
    onRefresh?: () => void;
}>, {
    error: Error | null;
}> {
    static displayName: string;
    state: {
        error: null;
    };
    static getDerivedStateFromError(error: Error): {
        error: Error;
    };
    componentDidCatch(error: Error, info: ErrorInfo): void;
    handleRefresh: () => void;
    renderFallback: () => {};
    render(): React.ReactNode;
}
//# sourceMappingURL=index.d.ts.map