import React, { Component } from 'react'; import type { ExtractDependencyType } from '@tinkoff/dippy'; import type { ERROR_BOUNDARY_TOKEN } from '@tramvai/react'; import { ChildAppReactConfig } from '@tramvai/tokens-child-app'; type AnyError = Error & { [key: string]: any; }; export interface ChildAppErrorBoundaryFallbackProps { error: AnyError; } export interface ChildAppErrorBoundaryProps { config: ChildAppReactConfig; childAppLoadingStatus?: string; error?: AnyError | null; fallback?: React.ComponentType; errorHandlers?: ExtractDependencyType | null; /** * @deprecated */ fallbackFromDi?: React.ReactElement | null; children?: React.ReactNode; } interface State { error: AnyError | null; childAppLoadingStatus?: string | null; } type Props = ChildAppErrorBoundaryProps; export declare class ChildAppErrorBoundary extends Component { constructor(props: Props); static displayName: string; static getDerivedStateFromProps(props: Props, state: State): { error: AnyError | null; childAppLoadingStatus?: undefined; } | { error: AnyError | null; childAppLoadingStatus: string; }; static getDerivedStateFromError(error: AnyError): { error: AnyError; }; componentDidCatch(error: AnyError, errorInfo: React.ErrorInfo): void; render(): React.ReactNode; } export {}; //# sourceMappingURL=ChildAppErrorBoundary.d.ts.map