/** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { BotTelemetryClient, StatePropertyAccessor, TurnContext } from 'botbuilder'; import { ComponentDialog, DialogContext, DialogInstance, DialogReason, DialogTurnResult } from 'botbuilder-dialogs'; import { MultiProviderAuthDialog } from 'botbuilder-solutions'; import { IServiceClientCredentials } from './auth'; import { ISkillManifest, ISlot } from './models'; import { SkillContext } from './skillContext'; import { ISkillTransport } from './skillTransport'; /** * The SkillDialog class provides the ability for a Bot to send/receive messages to a remote Skill (itself a Bot). * The dialog name is that of the underlying Skill it's wrapping. */ export declare class SkillDialog extends ComponentDialog { private readonly authDialog?; private readonly serviceClientCredentials; private readonly skillContextAccessor; private readonly skillManifest; private readonly skillTransport; private readonly queuedResponses; constructor(skillManifest: ISkillManifest, serviceClientCredentials: IServiceClientCredentials, telemetryClient: BotTelemetryClient, skillContextAccessor: StatePropertyAccessor, authDialog?: MultiProviderAuthDialog, skillTransport?: ISkillTransport); endDialog(context: TurnContext, instance: DialogInstance, reason: DialogReason): Promise; /** * When a SkillDialog is started, a skillBegin event is sent which firstly indicates the Skill is being invoked in Skill mode, * also slots are also provided where the information exists in the parent Bot. * @param innerDC inner dialog context. * @param options options * @returns dialog turn result. */ protected onBeginDialog(innerDC: DialogContext, options?: object): Promise; /** * All subsequent messages are forwarded on to the skill. * @param innerDC Inner Dialog Context. * @returns DialogTurnResult. */ protected onContinueDialog(innerDC: DialogContext): Promise; matchSkillContextToSlots(innerDc: DialogContext, actionSlots: ISlot[], skillContext: SkillContext): Promise; /** * Forward an inbound activity on to the Skill. * This is a synchronous operation whereby all response activities are aggregated and returned in one batch. * @param innerDc Inner DialogContext. * @param activity Activity. * @returns DialogTurnResult. */ private forwardToSkill; private getTokenRequestCallback; }