/** * Decoding the `im.chat.member.bot.added_v1` event envelope. * * Hosts use this event to notice when the Feishu bot is added to a chat. The * decode is deliberately narrow and pure: it only extracts stable envelope * identifiers, performs no I/O, and returns `null` for unroutable payloads. */ /** The Feishu event_type this decoder is for. */ export declare const BOT_MEMBER_ADDED_EVENT_TYPE = "im.chat.member.bot.added_v1"; /** A normalized bot-added event — the identifying fields the payload carries. */ export interface FeishuBotMemberAddedEvent { /** Chat id the bot was added to. */ chatId: string; /** Feishu event id from the header, empty when the host passes a bare event. */ eventId: string; } /** * Reshape a raw `im.chat.member.bot.added_v1` payload into a * `FeishuBotMemberAddedEvent`. Tolerates either a full `{ header, event }` * envelope or the bare event body delivered by some host adapters. Pure: no * I/O, never throws. */ export declare function normalizeBotMemberAddedEvent(raw: unknown): FeishuBotMemberAddedEvent | null; //# sourceMappingURL=bot-member.d.ts.map