import { Component, ErrorInfo, ReactNode } from 'react'; interface MFHostAppErrorBoundaryProps { moduleId: string; moduleVersion?: string; children: ReactNode; } interface MFHostAppErrorBoundaryState { hasError: boolean; } /** * Contain runtime crashes inside one MF tree and surface a safe local fallback. */ export declare class MFHostAppErrorBoundary extends Component { state: MFHostAppErrorBoundaryState; /** * Switch the MF tree into its fallback state after a runtime render failure. */ static getDerivedStateFromError(): MFHostAppErrorBoundaryState; /** * Forward the caught runtime error to the registered host handler, if any. */ componentDidCatch(error: Error, errorInfo: ErrorInfo): void; /** * Render the MF children or a safe fallback if a runtime error was caught. * The fallback should be as minimal and static as possible to avoid any risk of causing another error during rendering. */ render(): ReactNode; } export {}; //# sourceMappingURL=MFHostAppErrorBoundary.d.ts.map