import { ErrorObserverProps, ErrorObserverState } from '@bluebase/components'; import React from 'react'; import { BlueBase } from '../../BlueBase'; /** * # 🚨 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 * * Rendered if there is no error here * * ``` */ export declare class ErrorObserver extends React.Component { static contextType: React.Context; static defaultProps: Partial; readonly state: ErrorObserverState; static getDerivedStateFromProps: any; componentDidCatch(e: Error | null): void; render(): any; }