import { default as React, Component, ErrorInfo } from 'react';
export type ErrorBoundaryProps = {
    children: React.ReactNode;
    onError: (error?: Error, errorInfo?: ErrorInfo) => void;
    isModal?: boolean;
};
type ErrorBoundaryState = {
    error: any;
    errorInfo: any;
    hasError: boolean;
};
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
    constructor(props: ErrorBoundaryProps);
    state: ErrorBoundaryState;
    static getDerivedStateFromError(error: any): {
        hasError: boolean;
        error: any;
    };
    componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
    render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>;
}
export {};
