botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
39 lines • 1.55 kB
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Converter, ConverterFactory, DialogContext } from 'botbuilder-dialogs';
import { InputDialog, InputDialogConfiguration, InputState } from './inputDialog';
import { StringExpression } from 'adaptive-expressions';
import { StringProperty } from '../properties';
export interface TextInputConfiguration extends InputDialogConfiguration {
outputFormat?: StringProperty;
}
/**
* Declarative text input to gather text data from users.
*/
export declare class TextInput extends InputDialog implements TextInputConfiguration {
static $kind: string;
outputFormat: StringExpression;
/**
* @param property The key of the conditional selector configuration.
* @returns The converter for the selector configuration.
*/
getConverter(property: keyof TextInputConfiguration): Converter | ConverterFactory;
/**
* @protected
* @returns A `string` representing the compute Id.
*/
protected onComputeId(): string;
/**
* @protected
* Called when input has been received.
* @param dc The [DialogContext](xref:botbuilder-dialogs.DialogContext) for the current turn of conversation.
* @returns [InputState](xref:botbuilder-dialogs-adaptive.InputState) which reflects whether input was recognized as valid or not.
*/
protected onRecognizeInput(dc: DialogContext): Promise<InputState>;
}
//# sourceMappingURL=textInput.d.ts.map