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 自己; * - target 前缀解析 channel:`temp:gid:uid` → private + group parent, * `channel:guild:cid` → channel + guild parent。 */ 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; } /** `group:xx` / `private:xx` / `temp:gid:uid` / `channel:guild:cid` → channel 字段。 */ export declare function parseInboxTarget(target: string, channelTypeHint?: string): InboxChannelParts; //# sourceMappingURL=inbox-installer.d.ts.map