import { DeleteResult, FindOptionsWhere } from 'typeorm'; import { ChatMessage } from '../../database/entities/ChatMessage'; import { ChatMessageFeedback } from '../../database/entities/ChatMessageFeedback'; import { ChatMessageRatingType, ChatType, IChatMessage } from '../../Interface'; import { UsageCacheManager } from '../../UsageCacheManager'; declare function getMessagesByChatflowIds(chatflowIds: string[]): Promise; declare function getMessagesFeedbackByChatflowIds(chatflowIds: string[]): Promise; declare const _default: { createChatMessage: (chatMessage: Partial) => Promise; getAllChatMessages: (chatflowId: string, chatTypes: ChatType[] | undefined, sortOrder?: string, chatId?: string, memoryType?: string, sessionId?: string, startDate?: string, endDate?: string, messageId?: string, feedback?: boolean, feedbackTypes?: ChatMessageRatingType[], activeWorkspaceId?: string) => Promise; getAllInternalChatMessages: (chatflowId: string, chatTypes: ChatType[] | undefined, sortOrder?: string, chatId?: string, memoryType?: string, sessionId?: string, startDate?: string, endDate?: string, messageId?: string, feedback?: boolean, feedbackTypes?: ChatMessageRatingType[], activeWorkspaceId?: string) => Promise; removeAllChatMessages: (chatId: string, chatflowid: string, deleteOptions: FindOptionsWhere, orgId: string, workspaceId: string, usageCacheManager: UsageCacheManager) => Promise; removeChatMessagesByMessageIds: (chatflowid: string, chatIdMap: Map, messageIds: string[], orgId: string, workspaceId: string, usageCacheManager: UsageCacheManager) => Promise; abortChatMessage: (chatId: string, chatflowid: string) => Promise; getMessagesByChatflowIds: typeof getMessagesByChatflowIds; getMessagesFeedbackByChatflowIds: typeof getMessagesFeedbackByChatflowIds; }; export default _default;