import { Component, ErrorInfo, ReactNode } from 'react'; import { MFRuntimeErrorWrapperProps } from './types'; interface MFRuntimeErrorWrapperState { error?: Error; hasError: boolean; } /** * Contain render crashes inside one risky MF subtree and report them with wrapper attribution. */ export declare class MFRuntimeErrorWrapper extends Component { state: MFRuntimeErrorWrapperState; /** * Switch the wrapped subtree into its fallback state after a render failure. */ static getDerivedStateFromError(error: Error): MFRuntimeErrorWrapperState; /** * Forward the caught wrapper error through the shared MF runtime-error bridge. */ componentDidCatch(error: Error, errorInfo: ErrorInfo): void; /** * Retry the wrapped subtree when the caller-provided reset keys change. */ componentDidUpdate(previousProps: Readonly): void; /** * Render the wrapped subtree or its safe local fallback after a crash. */ render(): ReactNode; } export {}; //# sourceMappingURL=MFRuntimeErrorWrapper.d.ts.map