/** This bot's own learned union_id, or undefined if not yet echoed. */ export declare function getBotUnionId(dataDir: string, larkAppId: string): string | undefined; /** * Persist a bot's own union_id learned from its message echo. Returns true iff * the store changed (first learn or a corrected value), so callers can log * exactly once. No-op on empty ids. */ export declare function recordBotUnionId(dataDir: string, larkAppId: string, unionId: string, now?: number): boolean; /** A mention entry from a Lark message event (shape-tolerant subset). */ type MentionLike = { id?: { open_id?: string; union_id?: string; } | string; }; /** * Learn our OWN union_id from a message's mentions[]: Lark stamps every * mentioned entity with its union_id. Matches self strictly by open_id(app_id * 形态的 mention 不带 union_id,无从学起,忽略)。Returns true iff the store * changed. Idempotent — safe to call on every event. */ export declare function recordBotUnionIdFromMentions(dataDir: string, larkAppId: string, selfOpenId: string | undefined, mentions: MentionLike[] | undefined, now?: number): boolean; export {}; //# sourceMappingURL=bot-union-ids-store.d.ts.map