import type { SlackChannelRule } from '../schema/config-schema.js'; import type { ResolvedSlackAccount } from '../state/accounts.js'; import type { SlackRuntimeCaches } from '../state/caches.js'; export interface MentionGateInput { account: ResolvedSlackAccount; channelRule?: SlackChannelRule; channelType: 'im' | 'mpim' | 'channel' | 'group'; channelId: string; teamId?: string; eventType: 'message' | 'app_mention'; text: string; threadTs?: string; parentUserId?: string; botUserId: string; isBotSender: boolean; botSubteamIds?: ReadonlySet; caches: SlackRuntimeCaches; } export interface MentionGateResult { admitted: boolean; wasExplicitMention: boolean; wasImplicitMention: boolean; reason?: string; cleanedText: string; } export declare function stripSlackBotMention(text: string, botUserId: string): string; export declare function matchesMentionPatterns(text: string, patterns: readonly string[]): boolean; export declare function evaluateSlackMentionGate(input: MentionGateInput): MentionGateResult;