import { Context, type Session } from 'koishi'; import { type HumanMessage } from '@langchain/core/messages'; import type { LivingMemoryConfig } from '../contracts/workflows'; import type { ConversationLogEntryInput } from '../service/transcript/message_log/types'; /** * 用户请求先于读取入账;before-chat 与 after-chat 使用同一消息身份去重。 */ export declare const buildChatLunaSourceEntry: (session: Session, sourceMessage: HumanMessage) => ConversationLogEntryInput | null; export declare function apply(ctx: Context, config: LivingMemoryConfig): Promise;