import { ActivateActionBehaviour } from './activate-action-behaviour'; import { DeactivateActionBehaviour } from './deactivate-action-behaviour'; import { EntryActionBehaviour } from './entry-action-behaviour'; import { ExitActionBehaviour } from './exit-action-behaviour'; import { InvocationInfo } from './reflection/invocation-info'; import { Transition } from './transition'; import { TriggerBehaviour } from './trigger-behaviour'; import { TriggerBehaviourResult } from './trigger-behaviour-result'; /** * @link https://github.com/dotnet-state-machine/stateless/blob/dev/src/Stateless/StateRepresentation.cs * * @export * @class StateRepresentation * @template TState * @template TTrigger */ export declare class StateRepresentation { private readonly _state; private _initialTransitionTarget; private readonly _triggerBehaviours; private readonly _entryActions; private readonly _exitActions; private readonly _activateActions; private readonly _deactivateActions; private _active; private _superstate; private readonly _substates; _hasInitialTransition: boolean; constructor(_state: TState, _initialTransitionTarget?: TState); readonly hasInitialTransition: boolean; readonly initialTransitionTarget: TState; getSubstates(): Array>; readonly triggerBehaviours: Map>>; readonly entryActions: Array>; readonly exitActions: Array>; readonly activateActions: Array>; readonly deactivateActions: Array>; canHandle(trigger: TTrigger, ...args: any[]): Promise; readonly underlyingState: TState; addSubstate(substate: StateRepresentation): any; superstate: StateRepresentation | null; addTriggerBehaviour(triggerBehaviour: TriggerBehaviour): any; activate(): Promise; deactivate(): Promise; tryFindHandler(trigger: TTrigger, args: any[]): Promise<[boolean, TriggerBehaviourResult | undefined]>; private tryFindLocalHandler; private tryFindLocalHandlerResult; addActivateAction(action: () => any | Promise, activateActionDescription: InvocationInfo): void; addDeactivateAction(action: () => any | Promise, deactivateActionDescription: InvocationInfo): void; addEntryAction(trigger: TTrigger | null, action: (transition: Transition, ...args: any[]) => any | Promise, entryActionDescription: InvocationInfo): void; addExitAction(action: (transition: Transition) => any | Promise, exitActionDescription: InvocationInfo): any; internalAction(transition: Transition, args: any[]): Promise; enter(transition: Transition, entryArgs: any[]): Promise; exit(transition: Transition): Promise>; private executeDeactivationActions; private executeEntryActions; private executeExitActions; private executeActivationActions; includes(state: TState): boolean; isIncludedIn(state: TState): boolean; readonly permittedTriggers: Promise; getPermittedTriggers(args: any[]): Promise; setInitialTransition(state: TState): void; } //# sourceMappingURL=state-pepresentation.d.ts.map