import type { ImRuntime, RuntimeMessageEvent } from '@zhin.js/core/runtime'; import { type DatabaseHost } from '@zhin.js/plugin-runtime'; /** * ImRuntime onMessage → unified_inbox_message 写路径。 * 订阅去重与 console-api-installer 的消息桥一致(WeakSet 按 ImRuntime 实例)。 */ export declare function installInboxMessageRecorder(im: ImRuntime, databaseHost: DatabaseHost): void; /** * RuntimeMessageEvent → unified_inbox_message 行。 * - adapter 取 CapabilityId 的 localName(endpoint 槽名,与 console $adapter 一致); * - endpoint_id 取 live endpoint 名(如 icqq uin,与 console $endpoint 一致); * - 出站(direction=outbound)sender 记为 endpoint 自己; * - conversation → channel 字段(kind/is 与 parent,parent.kind 'group' → group, * 'channel' → guild,对齐 legacy target 的 temp/channel 前缀语义)。 */ export declare function buildInboxMessageRow(event: RuntimeMessageEvent, resolveEndpoint: (capabilityId: string) => string): Record; export interface InboxChannelParts { readonly channelType: string; readonly channelId: string; readonly parentType: 'group' | 'guild' | null; readonly parentId: string | null; } /** ConversationRef → channel 字段(parent.kind 'group' → group,'channel' → guild)。 */ export declare function conversationToInboxChannel(conversation: RuntimeMessageEvent['conversation']): InboxChannelParts; //# sourceMappingURL=inbox-installer.d.ts.map