import { StateRepresentation } from '../state-pepresentation'; import { IgnoredTransitionInfo } from './ignored-transition-info'; import { InvocationInfo } from './invocation-info'; import { FixedTransitionInfo } from './fixed-transition-info'; import { DynamicTransitionInfo } from './dynamic-transition-info'; import { ActionInfo } from './action-info'; import { TransitionInfo } from './transition-info'; /** * Describes an internal StateRepresentation through the reflection API. * * @export * @class StateInfo * @template TState * @link https://github.com/dotnet-state-machine/stateless/blob/dev/src/Stateless/Reflection/StateInfo.cs */ export declare class StateInfo { private readonly _underlyingState; private readonly _ignoredTriggers; private readonly _entryActions; private readonly _activateActions; private readonly _deactivateActions; private readonly _exitActions; private readonly _isActive; private _dynamicTransitions; private _fixedTransitions; private _superstate; private _substates; static createStateInfo(stateRepresentation: StateRepresentation, isActive?: boolean): StateInfo; /** * Creates an instance of StateInfo. * @param {TState} _underlyingState * @param {Iterable} _ignoredTriggers * @param {Iterable} _entryActions * @param {Iterable} _activateActions * @param {Iterable} _deactivateActions * @param {Iterable} _exitActions * @param {boolean} [_isActive=false] * @memberof StateInfo */ constructor(_underlyingState: TState, _ignoredTriggers: Iterable, _entryActions: Iterable, _activateActions: Iterable, _deactivateActions: Iterable, _exitActions: Iterable, _isActive?: boolean); static addRelationships(info: StateInfo, stateRepresentation: StateRepresentation, lookupState: (state: TState) => StateInfo): void; private addRelationships; /** * Checking this is current state. * * @readonly * @type {{} * @memberof StateInfo */ readonly isActive: boolean; /** * The instance or value this state represents. * * @readonly * @type {*} * @memberof StateInfo */ readonly underlyingState: TState; /** * Substates defined for this StateResource. * * @readonly * @type {(Iterable)} * @memberof StateInfo */ readonly substates: Iterable>; /** * Superstate defined, if any, for this StateResource. * * @readonly * @type {StateInfo} * @memberof StateInfo */ readonly superstate: StateInfo | null; /** * Actions that are defined to be executed on state-entry. * * @readonly * @type {Iterable} * @memberof StateInfo */ readonly entryActions: Iterable; /** * Actions that are defined to be executed on activation. * * @readonly * @type {Iterable} * @memberof StateInfo */ readonly activateActions: Iterable; /** * Actions that are defined to be executed on deactivation. * * @readonly * @type {Iterable} * @memberof StateInfo */ readonly deactivateActions: Iterable; /** * Actions that are defined to be exectuted on state-exit. * * @readonly * @type {Iterable} * @memberof StateInfo */ readonly exitActions: Iterable; /** * Transitions defined for this state. * * @readonly * @type {Iterable} * @memberof StateInfo */ readonly transitions: Iterable; /** * Transitions defined for this state. * * @readonly * @type {Iterable>} * @memberof StateInfo */ readonly fixedTransitions: Iterable>; /** * Dynamic Transitions defined for this state internally. * * @readonly * @type {Iterable>} * @memberof StateInfo */ readonly dynamicTransitions: Iterable>; /** * Triggers ignored for this state. * * @readonly * @type {Iterable} * @memberof StateInfo */ readonly ignoredTriggers: Iterable; /** * Passes through to the value's ToString. * * @returns {string} * @memberof StateInfo */ toString(): string; } //# sourceMappingURL=state-info.d.ts.map