import type { ComputedRef, Ref } from 'vue'; import type ChatBot from '../components/chat-bot.vue'; import type { SessionBusinessManager } from '../manager/business/session-business-manager'; import type { CreateSessionOptions } from '../manager/business/types'; import type { IChatHelper, ISession, ReportSdkErrorOptions } from '../types'; import type { EventForwarders } from './use-ai-blueking-init'; export interface UseSessionHandlersParams { chatBotRef: Ref | undefined>; chatHelper: IChatHelper; currentSession: ComputedRef; forwarders: EventForwarders; sessionBusinessManager: SessionBusinessManager; reportSdkError: (options: ReportSdkErrorOptions) => void; } export declare function useSessionHandlers(params: UseSessionHandlersParams): { sessionName: Ref; hasPermission: Ref; hasSessionContents: Ref; autoGenerateLoading: Ref; handleNewChat: () => Promise; handleNewChatCreated: (session: { sessionCode: string; sessionName?: string; createdAt?: string; }) => void; handleHistoryClick: (event: Event) => void; handleHistorySessionSwitch: (sessionCode: string) => Promise; handleHistorySessionDelete: (sessionCode: string) => Promise; handleHistorySessionRename: (sessionCode: string, newName: string) => Promise; handleAutoGenerateName: () => Promise; handleHelpClick: () => void; handleRename: (newName: string) => Promise; handleSessionSwitched: (session: ISession | null) => void; addNewSession: (options?: CreateSessionOptions) => Promise; switchToSession: (sessionCode: string) => Promise; updateSessionName: (sessionCode: string, newName: string) => Promise; }; //# sourceMappingURL=use-session-handlers.d.ts.map