UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

47 lines 1.68 kB
/** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Activity } from 'botbuilder'; import { Converter, ConverterFactory, Configurable, DialogContext, TemplateInterface } from 'botbuilder-dialogs'; export interface StaticActivityTemplateConfiguration { activity?: Partial<Activity>; } /** * Defines a static activity as a template. */ export declare class StaticActivityTemplate implements TemplateInterface<Partial<Activity>, unknown>, StaticActivityTemplateConfiguration, Configurable { static $kind: string; /** * Intialize a new instance of StaticActivityTemplate class. * * @param activity Activity as a template. */ constructor(activity?: Partial<Activity>); /** * Gets or sets the activity as template. */ activity: Partial<Activity>; /** * @param _property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ getConverter(_property: keyof StaticActivityTemplateConfiguration): Converter | ConverterFactory; /** * @param config The configuration. * @returns A object with the given configuration. */ configure(config: StaticActivityTemplateConfiguration): this; /** * Get predefined activity. * * @param dialogContext DialogContext. * @param data Data to bind to (not working with static activity template). */ bind(dialogContext: DialogContext, data: unknown): Promise<Partial<Activity>>; toString: () => string; } //# sourceMappingURL=staticActivityTemplate.d.ts.map