import type * as lark from '@larksuiteoapi/node-sdk'; import type { SenderIds, TokenCache } from './types.js'; export interface IdentityState { client: lark.Client | null; appId: string; appSecret: string; botName: string | null; botOpenId: string | null; botUserId: string | null; senderDisplayNameById: Map; contactProfileReadUnavailable: boolean; tokenCache: TokenCache; } export declare function normalizeBotName(value: string | null): string; export declare function isMentionMatchedToBot(mention: Record, state: IdentityState): boolean; export declare function isGroupMessageAddressedToBot(message: { content: string; }, parsedContent: Record | null, state: IdentityState): boolean; export declare function cacheSenderDisplayName(senderIds: SenderIds, displayName: string, state: IdentityState): void; export declare function getCachedSenderDisplayName(senderIds: SenderIds, state: IdentityState): string | undefined; export declare function fetchAndCacheSenderDisplayName(senderIds: SenderIds, state: IdentityState): Promise; export declare function resolveSenderDisplayName(rawEvent: Record, senderIds: SenderIds, parsedContent: Record | null, state: IdentityState): Promise; export declare function loadBotName(state: IdentityState): Promise; export declare function loadBotNameViaBotInfo(state: IdentityState): Promise; export declare function fetchInternalAccessToken(kind: 'tenant' | 'app', state: IdentityState): Promise; export declare function getOpenApiBaseUrl(state: IdentityState): string; export declare function requestJson(url: string, method: 'GET' | 'POST' | 'DELETE', body?: Record, headers?: Record): Promise>; //# sourceMappingURL=identity.d.ts.map