botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
34 lines (33 loc) • 1.07 kB
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { TriggerSelector } from '../triggerSelector';
import { OnCondition } from '../conditions';
import { ActionContext } from '../actionContext';
/**
* Select all rules which evaluate to true.
*/
export declare class TrueSelector extends TriggerSelector {
static $kind: string;
private _conditionals;
private _evaluate;
/**
* Initialize the selector with the set of rules.
*
* @param conditionals Possible rules to match.
* @param evaluate True if rules should be evaluated on select.
*/
initialize(conditionals: OnCondition[], evaluate: boolean): void;
/**
* Select the best rule to execute.
*
* @param actionContext Dialog context for evaluation.
* @returns A Promise with a number array.
*/
select(actionContext: ActionContext): Promise<OnCondition[]>;
}
//# sourceMappingURL=trueSelector.d.ts.map