import { FC, ReactNode } from 'react'; import { AssistantPreviewController } from './types'; export interface AssistantPreviewBridgeHostProps { /** * The product's preview controller — the SAME object passed to the panel as * `preview`, or the panel runs a second bridge. Keep it stable across renders * (see `AssistantPreviewController`). Absent: nothing is bridged here. */ preview?: AssistantPreviewController | null; children?: ReactNode; } /** * Run the preview bridge for `preview` for as long as THIS is mounted, and tell * any panel below that it need not run one. * * `AssistantOverlay` mounts one for `panelProps.preview`, so a product that * passes its controller that way gets a preview that keeps following a run * after the assistant is closed. A host that mounts the panel itself can do the * same by wrapping the place the panel comes and goes in this. * * ★ Unmounting THIS is still an ending: a run in flight gets `end(abandoned)`, * as it did when the panel unmounted — the host has gone, and with it the only * thing following the run. */ export declare const AssistantPreviewBridgeHost: FC; //# sourceMappingURL=bridgeHost.d.ts.map