import { TransitionGuard } from './transition-guard'; /** * Define trigger behaviour. * * @export * @abstract * @class TriggerBehaviour * @template TState * @template TTrigger * @link https://github.com/dotnet-state-machine/stateless/blob/dev/src/Stateless/TriggerBehaviour.cs */ export declare abstract class TriggerBehaviour { private readonly _trigger; private readonly _guard; /** * Creates an instance of TriggerBehaviour. * @param {TTrigger} _trigger * @param {(TransitionGuard | null)} guard TransitionGuard (null if no guard function) * @memberof TriggerBehaviour */ constructor(_trigger: TTrigger, guard: TransitionGuard | null); readonly trigger: TTrigger; /** * Guard is the transition guard for this trigger. Equal to TransitionGuard.Empty if there is no transition guard * * @readonly * @type {TransitionGuard} * @memberof TriggerBehaviour */ readonly guard: TransitionGuard; /** * Guards is the list of guard functions for the transition guard for this trigger * * @readonly * @memberof TriggerBehaviour */ readonly guards: Array<((args: any[]) => boolean | Promise) | null>; /** * GuardConditionsMet is true if all of the guard functions return true or if there are no guard functions * * @param {any[]} args * @param {TContext} [context] * @returns {Promise} * @memberof TriggerBehaviour */ guardConditionsMet(args: any[], context?: TContext): Promise; /** * UnmetGuardConditions is a list of the descriptions of all guard conditionswhose guard function returns false * * * @param {any[]} args * @param {TContext} [context] * @returns {Promise} * @memberof TriggerBehaviour */ unmetGuardConditions(args: any[], context?: TContext): Promise; abstract resultsInTransitionFrom(source: TState, args: any[]): Promise<[boolean, TState]>; } //# sourceMappingURL=trigger-behaviour.d.ts.map