import { Component, type ErrorInfo, type ReactNode } from "react";
export interface AggErrorBoundaryProps {
    children: ReactNode;
    /** Custom fallback UI to render when an error is caught. */
    fallback?: ReactNode;
    /** Called when the boundary catches an error. */
    onError?: (error: Error, errorInfo: ErrorInfo) => void;
    /** Called when the user clicks the retry button. Resets the boundary and re-renders children. */
    onRetry?: () => void;
    className?: string;
}
interface AggErrorBoundaryState {
    hasError: boolean;
    error: Error | null;
}
export declare class AggErrorBoundary extends Component<AggErrorBoundaryProps, AggErrorBoundaryState> {
    static displayName: string;
    constructor(props: AggErrorBoundaryProps);
    static getDerivedStateFromError(error: Error): AggErrorBoundaryState;
    componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
    private handleRetry;
    render(): ReactNode;
}
export {};
