import { default as React, Component } from 'react';
interface ErrorBoundaryProps {
    children: React.ReactNode;
    fallback: (error: Error, resetErrorBoundary: () => void) => React.ReactNode;
}
interface ErrorBoundaryState {
    hasError: boolean;
    error: Error | null;
}
declare class CustomErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
    constructor(props: ErrorBoundaryProps);
    static getDerivedStateFromError(error: Error): {
        hasError: boolean;
        error: Error;
    };
    resetErrorBoundary: () => void;
    render(): React.ReactNode;
}
export default CustomErrorBoundary;
