/** 飞书 GET /im/v1/messages 里的发送者 / mention 身份。 */ export type FetchedMention = { key?: string; id?: string; id_type?: string; name?: string; }; export type FetchedSender = { id?: string; id_type?: string; sender_type?: string; }; export type FetchedMessageIdentity = { sender?: FetchedSender; mentions?: FetchedMention[]; }; export type ClassifiedMessageIdentity = { senderIsApp: boolean; appMentionKeys: Set; /** GET 返回里出现过的 mention key。空集合表示这次没带回 mention,不能据此记成人。 */ fetchedMentionKeys: Set; }; /** app_id / sender_type=app / cli_ 前缀都视为应用机器人。 */ export declare function isAppIdentity(id?: string, idType?: string, senderType?: string): boolean; export declare function classifyFetchedMessage(fetched: FetchedMessageIdentity): ClassifiedMessageIdentity;