import React from 'react';
import { ReactDecoratorProps } from 'react-cosmos-shared2/react';
declare type State = {
    error: null | string;
};
export declare class ErrorCatch extends React.Component<ReactDecoratorProps, State> {
    state: State;
    componentDidCatch(error: Error, info: {
        componentStack: string;
    }): void;
    componentDidUpdate(prevProps: ReactDecoratorProps): void;
    render(): React.ReactNode;
    renderError(error: string): JSX.Element | null;
}
export {};
