UNPKG

@difizen/magent-chat

Version:
12 lines 867 B
import type { ChatMessageItemOption } from './chat-message-item-model.js'; import type { ConversationOption, IChatEvent, IChatMessageItem } from './protocol.js'; export declare class ChatService { chat: (msg: any) => Promise<IChatMessageItem[]>; chatStream: (msg: any, messgeCallback: (event: IChatMessageItem) => void, eventCallback: (event: IChatEvent) => void) => Promise<void>; getConversationMessages: (conversation: ConversationOption) => Promise<undefined | ChatMessageItemOption[]>; getConversations: (opt: any) => Promise<undefined | ConversationOption[]>; getConversation: (opt: ConversationOption) => Promise<ConversationOption | undefined>; createConversation: (opt: any) => Promise<ConversationOption | undefined>; deleteConversation: (opt: ConversationOption) => Promise<boolean>; } //# sourceMappingURL=chat-service.d.ts.map