/** * Message handling utilities for Slack * * Provides utilities for: * - Detecting bot mentions in messages * - Stripping bot mention from message text * - Determining if a message should be processed */ /** * Check if the bot was mentioned in a message * * Slack format for mentions: <@U1234567890> * * @param text - Message text * @param botUserId - Bot's user ID * @returns true if the bot was mentioned */ export declare function isBotMentioned(text: string, botUserId: string): boolean; /** * Strip the bot mention from message text * * Removes <@BOTID> and trims whitespace. * * @param text - Message text * @param botUserId - Bot's user ID * @returns Cleaned message text */ export declare function stripBotMention(text: string, botUserId: string): string; /** * Strip all user mentions from message text * * @param text - Message text * @returns Text with all mentions removed */ export declare function stripMentions(text: string): string; /** * Determine if a message should be processed * * Rules: * - Ignore messages from bots * - Process app_mention events (always a mention) * - Process thread replies in active conversation threads * * @param event - Slack event data * @param botUserId - Bot's user ID * @returns true if the message should be processed */ export declare function shouldProcessMessage(event: { bot_id?: string; subtype?: string; user?: string; thread_ts?: string; }, botUserId: string): boolean; /** * Process a message event and extract the prompt * * @param text - Raw message text * @param botUserId - Bot's user ID * @returns Processed prompt text */ export declare function processMessage(text: string, botUserId: string): string; //# sourceMappingURL=message-handler.d.ts.map