import * as React from 'react';
type PropTypes = {
    children: React.ReactNode;
    styles: {
        [key: string]: any;
    };
};
declare class ErrorBoundary extends React.Component {
    state: {
        hasError: boolean;
        errorMessage: string;
        showError: boolean;
    };
    props: PropTypes;
    constructor(props: PropTypes);
    static getDerivedStateFromError(): {
        hasError: boolean;
    };
    componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
    handleClick(): void;
    render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode>;
}
export default ErrorBoundary;
