/** * @module botbuilder */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { MicrosoftAppCredentials } from 'botframework-connector'; import { Activity, Middleware, TurnContext, BotState, UserState, ConversationState, Storage } from 'botbuilder-core'; /** @private */ declare abstract class InterceptionMiddleware implements Middleware { /** Implement middleware signature * @param context {TurnContext} An incoming TurnContext object. * @param next {function} The next delegate function. */ onTurn(turnContext: TurnContext, next: () => Promise): Promise; protected abstract inbound(turnContext: TurnContext, traceActivity: Partial): Promise; protected abstract outbound(turnContext: TurnContext, traceActivities: Partial[]): Promise; protected abstract traceState(turnContext: TurnContext): Promise; private invokeInbound; private invokeOutbound; private invokeTraceState; } /** * InspectionMiddleware for emulator inspection of runtime Activities and BotState. * * @remarks * InspectionMiddleware for emulator inspection of runtime Activities and BotState. * */ export declare class InspectionMiddleware extends InterceptionMiddleware { private static readonly command; private readonly inspectionState; private readonly inspectionStateAccessor; private readonly userState; private readonly conversationState; private readonly credentials; /** * Create the Inspection middleware for sending trace activities out to an emulator session */ constructor(inspectionState: InspectionState, userState?: UserState, conversationState?: ConversationState, credentials?: Partial); processCommand(turnContext: TurnContext): Promise; protected inbound(turnContext: TurnContext, traceActivity: Partial): Promise; protected outbound(turnContext: TurnContext, traceActivities: Partial[]): Promise; protected traceState(turnContext: TurnContext): Promise; private processOpenCommand; private processAttachCommand; private openCommand; private attachCommand; private findSession; private invokeSend; private cleanUpSession; private getAttachId; } /** * InspectionState for use by the InspectionMiddleware for emulator inspection of runtime Activities and BotState. * * @remarks * InspectionState for use by the InspectionMiddleware for emulator inspection of runtime Activities and BotState. * */ export declare class InspectionState extends BotState { constructor(storage: Storage); protected getStorageKey(turnContext: TurnContext): string; } export {}; //# sourceMappingURL=inspectionMiddleware.d.ts.map