import type { ComputedRef, Ref } from 'vue'; import { ChatBusinessManager, SessionBusinessManager, ShortcutManager } from '../../manager'; import type { IChatHelper } from '../../types'; import type { ChatBotProps } from '../types'; export type ChatBotEmitFn = (...args: any[]) => void; export interface UseChatbotInitParams { emit: ChatBotEmitFn; props: ChatBotProps; scrollToBottom: () => Promise; } export interface UseChatbotInitReturn { chatBusinessManager: Ref; chatHelper: Ref; initError: Ref; isInitialized: Ref; isReady: ComputedRef; isStandaloneMode: Ref; sessionBusinessManager: Ref; shortcutManager: Ref; whenReady: () => Promise; } /** URL / chatHelper 变更导致上一轮初始化被取代 */ export declare class ChatBotInitStaleError extends Error { constructor(); } export declare function useChatbotInit(params: UseChatbotInitParams): UseChatbotInitReturn; //# sourceMappingURL=use-chatbot-init.d.ts.map