/** Lbos */ import Cmf from "cmf.lbos"; import { GenericDiagramModel, GenericDiagramPoint } from "cmf.core.controls/src/components/genericDiagram/genericDiagram"; import { InfoBadge } from "./stateModelDiagramNode/stateModelDiagramNode"; export declare const START_NODE_ID = "start"; export declare const END_NODE_ID = "end"; export declare const STATE_NODE_ID = "state"; export declare const NOTE_NODE_ID = "note"; export declare const NODE_COMPONENT: string; export declare const NODE_COMPONENT_MODULE: string; /** * StateModelLayoutStateType */ export declare enum StateModelLayoutStateType { Begin = 0, End = 1, State = 2 } /** * StateModelLayoutTransitionType */ export declare enum StateModelLayoutTransitionType { FromBegin = 0, ToEnd = 1, BetweenStates = 2 } /** * StateModelLayoutTransition */ export interface StateModelLayoutTransition { transitionName: string; type: StateModelLayoutTransitionType; fromStateName?: string; toStateName?: string; vertices?: GenericDiagramPoint[]; } /** * StateModelLayoutState */ export interface StateModelLayoutState { stateName: string; position: GenericDiagramPoint; type: StateModelLayoutStateType; } /** * StateModelLayoutNote */ export interface StateModelLayoutNote { position: GenericDiagramPoint; note: string; } /** * StateModelLayout */ export interface StateModelLayout { transitions: StateModelLayoutTransition[]; states: StateModelLayoutState[]; notes: StateModelLayoutNote[]; } /** * State Model Diagram Utils * @class StateModelDiagramUtils */ export declare class StateModelDiagramUtils { /** * Instance */ private static instance; /** * Info badges builder */ static defaultInfoBadgesBuilder(object: Cmf.Foundation.BusinessObjects.StateModelState): InfoBadge[]; /** * Convert StateModel to generic diagram layout model */ static convertStateModelToDiagramLayoutModel(stateModel: Cmf.Foundation.BusinessObjects.StateModel, stateSettingsAction: string, infoBadgesBuilder: (object: any) => InfoBadge[], showDescription: boolean, stateDetailsConstructor: () => Cmf.Foundation.BusinessObjects.StateModelFlowStateDetail, onSaveStateSettings: () => Promise): GenericDiagramModel; /** * Convert generic diagram layout model to StateModel */ static convertDiagramLayoutModelToStateModel(model: GenericDiagramModel): any; }