@microsoft/teams-js
Version:
Microsoft Client SDK for building app for Microsoft hosts
23 lines (22 loc) • 974 B
TypeScript
/**
* Module for interaction with adaptive card dialogs that need to communicate with the bot framework
*
* @module
*/
import { BotAdaptiveCardDialogInfo } from '../../interfaces';
import { DialogSubmitHandler } from '../dialog';
/**
* Allows an app to open an adaptive card-based dialog module using bot.
*
* @param botAdaptiveCardDialogInfo - An object containing the parameters of the dialog module including completionBotId.
* @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
*/
export declare function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
/**
* Checks if dialog.adaptiveCard.bot capability is supported by the host
*
* @returns boolean to represent whether dialog.adaptiveCard.bot is supported
*
* @throws Error if {@linkcode app.initialize} has not successfully completed
*/
export declare function isSupported(): boolean;