import { BlueBase } from '../../BlueBase';
import { ErrorObserverProps } from '@bluebase/components';
import React from 'react';
export interface ErrorObserverState {
    readonly error?: Error;
}
/**
 * # 🚨 ErrorObserver
 *
 * Observes any exceptions in child tree hierarchy. When an exception is caught, displays
 * an Error state to gracefully handle it on the frontend.
 *
 * ## Usage
 * ```jsx
 * <ErrorObserver
 *  errorComponent={ErrorState}
 * >
 *  <Text>Rendered if there is no error here</Text>
 * </ErrorObserver>
 * ```
 */
export declare class ErrorObserver extends React.PureComponent<ErrorObserverProps, ErrorObserverState> {
    static contextType: React.Context<BlueBase>;
    static defaultProps: Partial<ErrorObserverProps>;
    readonly state: ErrorObserverState;
    componentDidCatch(error: Error | null): void;
    render(): any;
}
