/**
 * WordPress dependencies
 */
import { Component } from '@wordpress/element';
declare class ErrorBoundary extends Component {
    constructor();
    componentDidCatch(error: any): void;
    static getDerivedStateFromError(error: any): {
        error: any;
    };
    render(): any;
}
/**
 * ErrorBoundary is used to catch JavaScript errors anywhere in a child component tree, log those errors, and display a fallback UI.
 *
 * It uses the lifecycle methods getDerivedStateFromError and componentDidCatch to catch errors in a child component tree.
 *
 * getDerivedStateFromError is used to render a fallback UI after an error has been thrown, and componentDidCatch is used to log error information.
 *
 * @class ErrorBoundary
 * @augments Component
 */
export default ErrorBoundary;
//# sourceMappingURL=index.d.ts.map