/** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { TurnContext } from 'botbuilder'; import { BotTelemetryClient } from 'botbuilder-core'; import { DialogContext, DialogInstance, DialogReason, DialogTurnResult } from 'botbuilder-dialogs'; import { InterruptableDialog } from './interruptableDialog'; import { InterruptionAction } from './interruptionAction'; /** * DEPRECATED "Please use ActivityHandlerDialog instead. For more information, refer to https://aka.ms/bfvarouting." */ export declare abstract class RouterDialog extends InterruptableDialog { constructor(dialogId: string, telemetryClient: BotTelemetryClient); protected onBeginDialog(innerDc: DialogContext, options: Object): Promise; protected onContinueDialog(innerDc: DialogContext): Promise; protected onEndDialog(context: TurnContext, instance: DialogInstance, reason: DialogReason): Promise; protected onRepromptDialog(context: TurnContext, instance: DialogInstance): Promise; /** * Called when the inner dialog stack is empty. * @param innerDC - The dialog context for the component. * @returns A Promise representing the asynchronous operation. */ protected abstract route(innerDc: DialogContext): Promise; /** * Called when the inner dialog stack is complete. * @param innerDC - The dialog context for the component. * @param result - The dialog result when inner dialog completed. * @returns A Promise representing the asynchronous operation. */ protected complete(innerDc: DialogContext, result?: DialogTurnResult): Promise; /** * Called when an event activity is received. * @param innerDC - The dialog context for the component. * @returns A Promise representing the asynchronous operation. */ protected onEvent(innerDc: DialogContext): Promise; /** * Called when a system activity is received. * @param innerDC - The dialog context for the component. * @returns A Promise representing the asynchronous operation. */ protected onSystemMessage(innerDc: DialogContext): Promise; /** * Called when a conversation update activity is received. * @param innerDC - The dialog context for the component. * @returns A Promise representing the asynchronous operation. */ protected onStart(innerDc: DialogContext): Promise; protected onInterruptDialog(dc: DialogContext): Promise; }