import React from 'react';
import type { RicosEditorProps } from '../../ricos-common/index.js';
import type { RicosServices } from '../../ricos-types/index.js';
type RicosErrorBoundaryProps = React.PropsWithChildren & {
    editor?: RicosServices['editor'];
    onError: RicosEditorProps['onError'];
};
type RicosErrorBoundaryState = {
    error: string;
};
export declare class RicosErrorBoundary extends React.Component<RicosErrorBoundaryProps, RicosErrorBoundaryState> {
    state: {
        error: string;
    };
    static getDerivedStateFromError(error: string): {
        error: string;
    };
    componentDidCatch(error: $TSFixMe, errorInfo: $TSFixMe): void;
    render(): React.ReactNode;
}
export {};
//# sourceMappingURL=ricos-error-boundary.d.ts.map