import React, { Component } from "react";
interface ErrorBoundaryProps {
    children: React.ReactNode;
    customComponent?: React.ComponentType<{
        error: Error;
    }>;
}
type ErrorBoundaryState = {
    error: Error | null;
    componentStack?: string;
    draftId?: string | null;
};
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
    constructor(props: ErrorBoundaryProps);
    static getDerivedStateFromError(error: Error): {
        error: Error;
    };
    componentDidUpdate(prevProps: ErrorBoundaryProps): void;
    componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
    render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
}
export {};
//# sourceMappingURL=ErrorBoundary.d.ts.map