import { Accessor, Setter } from 'solid-js'; import type { MessageType, FileUpload, IAction, IAgentReasoning } from '@/widget/types'; type MessageManagerConfig = { deploymentId: string; chatId: Accessor; errorMessage: string | undefined; onReceiveSound: () => void; }; export declare function createMessageManager(config: MessageManagerConfig): { messages: Accessor; setMessages: Setter; updateLastBotMessage: (updater: (msg: MessageType) => MessageType) => void; updateLastMessage: (text: string) => void; updateErrorMessage: (errorMessage: string) => void; updateLastMessageSourceDocuments: (sourceDocuments: any) => void; updateLastMessageUsedTools: (usedTools: any[]) => void; updateLastMessageFileAnnotations: (fileAnnotations: any) => void; updateLastMessageAgentReasoning: (agentReasoning: string | IAgentReasoning[]) => void; updateAgentFlowEvent: (event: string) => void; updateAgentFlowExecutedData: (agentFlowExecutedData: any) => void; updateLastMessageArtifacts: (artifacts: FileUpload[]) => void; updateLastMessageAction: (action: IAction) => void; resetSoundFlag: () => void; }; export {};