import { CSSProperties } from 'react'; import { DiscoveredContribution, MountTunnel } from '@burdenoff/fe-libs/shared/plugins'; export interface PluginIframeMountProps { contribution: DiscoveredContribution; tunnel: MountTunnel; restPaths: string[]; /** Per-page context the plugin reads via `host:init`. */ context: Record; /** Canonical agent id surfaced in `host:init`. */ agentId: string; /** Profile that owns the iframe token (must match `tunnel.profile`). */ profile: string; theme: { colorMode: 'light' | 'dark'; tokens: Record; }; locale: string; featureFlags: Record; /** Real version string. Don't reuse an entity id here. */ hostVersion: string; /** Render-prop override for the loading state. */ loadingNode?: React.ReactNode; /** Render-prop override for the error state. Receives the error message + a retry callback. */ errorNode?: (error: { message: string; retry: () => void; }) => React.ReactNode; style?: CSSProperties; } /** * Shared iframe-mount helper used by the Vibe + Agent detail pages * and the standalone `/plugin/:pluginKey` route. Owns the per- * contribution scoped-token lifecycle (initial mint + refresh ~60s * before expiry + retry-on-failure) and renders the iframe via the * fe-libs `` primitive. * * Behaviour: * - Initial mint failure surfaces an error state with a retry * button (no infinite "Loading…" spinner). * - Refresh failure keeps the existing token in place + retries * after a short delay; the iframe doesn't unmount. * - Component-level unmount cancels all in-flight + scheduled work * via the alive ref. */ export declare function PluginIframeMount(props: PluginIframeMountProps): import('react').JSX.Element;