import { Component, type PropsWithChildren, type ReactNode } from 'react';
/**
 * Error boundary.
 * https://reactjs.org/docs/error-boundaries.html
 */
export declare class ErrorBoundary extends Component<PropsWithChildren<{}>, {
    error: Error;
    hasError: true;
} | {
    hasError: false;
}> {
    constructor(props: any);
    static getDerivedStateFromError(error: Error): {
        hasError: boolean;
        error: Error;
    };
    render(): ReactNode;
}
//# sourceMappingURL=ErrorBoundary.d.ts.map