import { default as React, ErrorInfo, PropsWithChildren, ReactNode } from 'react';
type FallbackProps = {
    error: Error | null;
    errorInfo: ErrorInfo | null;
    onRetry: () => void;
};
interface ErrorBoundaryProps extends PropsWithChildren<{
    fallback?: ({ error, errorInfo, onRetry }: FallbackProps) => ReactNode;
    onError?: (error: Error, errorInfo: ErrorInfo) => void;
    retry?: () => void;
    debug?: boolean;
    className?: string;
}> {
}
interface ErrorBoundaryState {
    hasError: boolean;
    error: Error | null;
    errorInfo: ErrorInfo | null;
}
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
    constructor(props: ErrorBoundaryProps);
    static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
    componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
    handleRetry: () => void;
    render(): React.ReactNode;
}
export {};
//# sourceMappingURL=ErrorBoundary.d.ts.map