import { T as ToolHost } from '../tool-host-BBSaU7IJ.cjs'; import { B as Bridge } from '../types-D_H2f-wF.cjs'; import '../types-ITRQFAir.cjs'; /** * Adapter wires a single fancy-echarts chart to the bridge. Charts are * already prop-driven, so the adapter just exposes the data + option * setters and a way to read what's currently rendered. */ type ChartsBridgeAdapter = { /** Stable id for this chart instance. */ id: string; title?: string; screenId?: string; /** Read the current ECharts option object the chart is rendering. */ getOption: () => Record; /** Replace the entire option. */ setOption: (option: Record) => void; /** Convenience: shallow-merge a partial option update. */ updateOption?: (partial: Record) => void; /** Read just the data series (subset of option for quick agent reads). */ getData?: () => unknown; /** Update only the data, leaving axes/colors/etc. alone. */ updateData?: (data: unknown) => void; }; type ChartsBridgeOptions = { adapter: ChartsBridgeAdapter; agent?: { id: string; name?: string; color?: string; }; }; /** * registerChartsBridge — schema-aware MCP access to a single chart. */ declare function registerChartsBridge(host: ToolHost, options: ChartsBridgeOptions): Bridge; export { type ChartsBridgeAdapter, type ChartsBridgeOptions, registerChartsBridge };