import { Component, type ErrorInfo, type ReactNode } from "react"; import { type FactoryVisualizerError } from "./visualizer-error"; /** A host-provided, safe-to-display local failure and optional recovery action. */ export interface FactoryEmulatorFailure { message: string; recoveryAction?: { label: string; onRecover: () => void; }; } interface FactoryEmulatorErrorBoundaryProps { children: ReactNode; failure?: FactoryEmulatorFailure; onError?: (error: FactoryVisualizerError) => void; regionLabel: string; } interface FactoryEmulatorErrorBoundaryState { error?: FactoryVisualizerError; } export declare class FactoryEmulatorErrorBoundary extends Component { state: FactoryEmulatorErrorBoundaryState; static getDerivedStateFromError(): FactoryEmulatorErrorBoundaryState; componentDidCatch(error: unknown, _errorInfo: ErrorInfo): void; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined; } export {};