/** * @module botbuilder */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Activity } from 'botframework-schema'; import { Middleware } from './middlewareSet'; import { TurnContext } from './turnContext'; /** * Middleware to patch mention Entities from Skype since they don't conform to expected values. * Bots that interact with Skype should use this middleware if mentions are used. * * @remarks * A Skype mention "text" field is of the format: * botname * But Activity.Text doesn't contain those tags and RemoveMentionText can't remove * the entity from Activity.Text. * This will remove the nodes, leaving just the name. */ export declare class SkypeMentionNormalizeMiddleware implements Middleware { /** * Performs the normalization of Skype mention Entities. * * @param activity [Activity](xref:botframework-schema.Activity) containing the mentions to normalize. */ static normalizeSkypeMentionText(activity: Activity): void; /** * Middleware implementation which corrects the Entity text of type [Mention](xref:botframework-schema.Mention) to a value that [removeMentionText](xref:botbuilder-core.TurnContext.removeMentionText) can work with. * * @param turnContext [TurnContext](xref:botbuilder-core.TurnContext) for the current turn of conversation. * @param next Delegate to call to continue the bot middleware pipeline. */ onTurn(turnContext: TurnContext, next: () => Promise): Promise; } //# sourceMappingURL=skypeMentionNormalizeMiddleware.d.ts.map