UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

34 lines (33 loc) 1.12 kB
/** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { OnCondition } from '../conditions/onCondition'; import { TriggerSelector } from '../triggerSelector'; import { ActionContext } from '../actionContext'; /** * Select the first true rule implementation of TriggerSelector */ export declare class FirstSelector 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 A boolean representing 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=firstSelector.d.ts.map