import { ActionFunction } from 'xstate'; import { Context, Events, EmittedEvents } from './machine.setup'; import { XYFlowInstance } from '../../hooks'; import { HotkeyActorLogic } from './hotkeyActor'; import { OverlaysActorLogic } from '../../overlays/overlaysActor'; import { SearchActorLogic } from '../../search/searchActor'; import { MediaPrintActorLogic } from './mediaPrintActor'; import { EditorActorLogic } from '../../editor'; import { DiagramView } from '@likec4/core'; /** * To be in `initializing` state, the diagram must wait for two events: * - `xyflow.init` - indicates that the `xyflow` instance is ready * - `update.view` - provides the initial diagram data (nodes and edges) * * Once both events have been received, the diagram transitions to `isReady` state. */ export declare const initializing: { on: { 'xyflow.init': { actions: ActionFunction; target: string; }; 'update.view': { actions: ActionFunction[]; target: string; }; }; }; /** * State that checks whether the diagram is ready to be used. * Transitions to `ready` state if both `xyflow` and `xydata` are initialized, * otherwise goes back to `initializing` state.` */ export declare const isReady: { always: ({ guard: "isReady"; actions: ( ActionFunction | ActionFunction | ActionFunction)[]; target: string; } | { target: string; guard?: never; actions?: never; })[]; };