import { IAgentScopeRuntimeWebUISessionsContext } from '../types/ISessions'; import { IAgentScopeRuntimeWebUISession } from '../types/ISessions'; import React from "react"; export declare const ChatAnywhereSessionsContext: import("use-context-selector").Context; export declare function ChatAnywhereSessionsContextProvider(props: { children: React.ReactNode | React.ReactNode[]; }): import("react/jsx-runtime").JSX.Element; /** * 会话切换时加载消息和判断重连的 hook,必须保证只挂载一次 */ export declare const useChatAnywhereSessionLoader: () => void; /** * 获取会话列表的 reactive 状态,供外部自定义会话面板使用 */ export declare const useChatAnywhereSessionsState: () => IAgentScopeRuntimeWebUISessionsContext; export declare const useChatAnywhereSessions: () => { changeCurrentSessionId: (sessionId: string) => void; getCurrentSessionId: () => string; getSessions: () => IAgentScopeRuntimeWebUISession[]; removeSession: (session: Partial & { id: string; }) => Promise; updateSession: (session: Partial) => Promise>; createSession: (data?: { name?: string; }) => Promise; };