import { Ref } from 'vue'; import { MenuItemConfig } from '@opentiny/next-sdk'; /** * 插件会话管理 Composable * 用于处理 sessionId 相关的所有逻辑:扫码添加插件、识别码输入、遥控器初始化等 */ export declare function usePluginSession(options: { /** * 会话 ID: * - 初始为 undefined 或空字符串时:先渲染仅含「打开对话框」的 Logo * - 后续变为非空字符串时:自动升级为带二维码 / 遥控器等完整菜单 */ sessionId: Ref; agentRoot: Ref; mode: string; qrCodeUrl?: string; remoteUrl?: string; menuItems?: Ref; AILogoUrl?: string; show: Ref; addPluginFromScan: (sessionId: string, agentRoot: string) => Promise; inputMessage: Ref; }): { handleScanSuccess: (sessionIdValue: string) => Promise; handleSessionIdInput: (input: string) => Promise; initialize: () => void; initializeRemoter: () => void; watchSessionIdChanges: () => void; };