@fsmoothy/core
Version:
FSMoothy is a feature-rich and easy-to-use finite state machine for TypeScript.
12 lines • 1.4 kB
TypeScript
import { AllowedNames, FsmContext, IInternalTransition, StateMachineParameters, Transition, Subscribers, Callback, Nested } from './types';
export declare const InitialEvent: any;
export declare function capitalize(parameter: string): string;
export declare function initialTransition<State extends AllowedNames, Event extends AllowedNames, Context extends FsmContext<unknown> = FsmContext<never>>(state: State): IInternalTransition<State, Event, Context>;
export declare function addIsChecker(this: any, state: AllowedNames): void;
export declare function prepareStates<State extends AllowedNames>(this: any, parameters: StateMachineParameters<any, any, any>): Map<State, Nested | null>;
export declare function prepareTransitions(this: any, transitions?: Array<Transition<AllowedNames, AllowedNames, any>>): Map<any, any>;
export declare function prepareSubscribers<Event extends AllowedNames, Context extends FsmContext<unknown>>(this: any, subscribers?: Subscribers<Event, Context>): Map<Event, Map<Callback<Context>, Callback<Context>>>;
export declare function populateEventMethods(this: any, parameters: StateMachineParameters<any, any, any>): void;
export declare function populateCheckers(this: any, parameters: StateMachineParameters<any, any, any>): void;
export declare function addEventMethods<Event extends AllowedNames>(this: any, event: Event): void;
//# sourceMappingURL=heplers.d.ts.map