botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
30 lines (29 loc) • 983 B
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Configurable } from 'botbuilder-dialogs';
import { ActionContext } from './actionContext';
import { OnCondition } from './conditions';
/**
* Select the trigger to execute in a given state.
*/
export declare abstract class TriggerSelector extends Configurable {
/**
* Initialize the selector with the set of rules.
*
* @param conditionHandlers Possible rules to match.
* @param evaluate True if rules should be evaluated on select.
*/
abstract initialize(conditionHandlers: OnCondition[], evaluate: boolean): void;
/**
* Select the best rule to execute.
*
* @param actionContext Dialog context for evaluation.
*/
abstract select(actionContext: ActionContext): Promise<OnCondition[]>;
}
//# sourceMappingURL=triggerSelector.d.ts.map