import { ActionFunction, CancelAction, GuardPredicate, ParameterizedObject, StopAction, LogAction, GuardArgs } from 'xstate'; import { Context, Events, EmittedEvents } from './machine.setup'; import { HotkeyActorLogic, HotKeyEvent } from './hotkeyActor'; import { OverlaysActorLogic } from '../../overlays/overlaysActor'; import { SearchActorLogic } from '../../search/searchActor'; import { MediaPrintActorLogic } from './mediaPrintActor'; import { EditorActorLogic } from '../../editor'; import { BBox } from '@likec4/core'; export declare const ready: { initial: string; entry: ActionFunction[]; exit: CancelAction[]; states: { idle: { id: string; on: { 'xyflow.nodeClick': ({ target: string; guard: GuardPredicate; actions: ( ActionFunction | ActionFunction)[]; } | { guard: GuardPredicate; actions: ActionFunction[]; } | { actions: ActionFunction[]; guard?: never; })[]; 'xyflow.paneClick': { actions: ( ActionFunction | ActionFunction)[]; }; 'xyflow.paneDblClick': { actions: ( ActionFunction | ActionFunction)[]; }; 'focus.node': ({ guard: "focus.node: autoUnfocus"; actions: ActionFunction; target: string; } | { guard: "enabled: FocusMode"; actions: ActionFunction; target: string; })[]; 'xyflow.edgeClick': { guard: GuardPredicate; actions: ( ActionFunction | ActionFunction | ActionFunction)[]; }; }; }; focused: { id: string; entry: CancelAction[]; exit: CancelAction[]; on: { 'focus.autoUnfocus': { target: string; }; 'xyflow.nodeClick': ({ guard: GuardPredicate; actions: ActionFunction[]; } | { target: string; guard: "click: focused node"; actions: ( ActionFunction | ActionFunction)[]; } | { actions: ( ActionFunction | ActionFunction | ActionFunction)[]; guard?: never; })[]; 'focus.node': { actions: ActionFunction[]; }; 'key.esc': { target: string; }; 'xyflow.paneClick': { target: string; actions: ActionFunction[]; }; 'notations.unhighlight': { actions: ActionFunction; }; 'tag.unhighlight': { actions: ActionFunction; }; }; }; walkthrough: { id: string; entry: CancelAction[]; exit: StopAction[]; on: { 'key.esc': { target: string; }; 'key.arrow.left': { actions: ActionFunction; }; 'key.arrow.up': { actions: ActionFunction; }; 'key.arrow.right': { actions: ActionFunction; }; 'key.arrow.down': { actions: ActionFunction; }; 'walkthrough.step': { actions: ( ActionFunction | ActionFunction)[]; }; 'xyflow.edgeClick': ({ guard: "click: active walkthrough step"; actions: ( ActionFunction | ActionFunction)[]; } | { actions: ( ActionFunction | ActionFunction)[]; guard?: never; })[]; 'notations.unhighlight': { actions: ActionFunction; }; 'tag.unhighlight': { actions: ActionFunction; }; 'update.view': { guard: "is same view"; actions: ActionFunction[]; }; 'walkthrough.end': { target: string; }; 'xyflow.paneDblClick': { target: string; }; }; }; printing: { id: string; entry: CancelAction[]; exit: ActionFunction[]; on: { 'media.print.off': { target: string; }; '*': { actions: LogAction[]; }; }; }; }; on: { 'layout.align': { guard: "not readonly"; actions: ( ActionFunction | ActionFunction)[]; }; 'layout.resetEdgeControlPoints': { guard: "not readonly"; actions: ActionFunction[]; }; 'layout.resetManualLayout': { actions: ActionFunction[]; }; 'media.print.on': { target: string; }; 'navigate.*': { actions: ActionFunction; }; 'notations.highlight': { actions: ActionFunction; }; 'notations.unhighlight': { actions: ActionFunction; }; 'highlight.*': { actions: ActionFunction; }; 'unhighlight.all': { actions: ActionFunction; }; 'open.elementDetails': { actions: ActionFunction; }; 'open.relationshipDetails': { actions: ActionFunction; }; 'open.relationshipsBrowser': { actions: ActionFunction; }; 'open.search': { guard: "enabled: Search"; actions: ActionFunction; }; 'open.source': { guard: "enabled: OpenSource"; actions: ActionFunction; }; 'tag.highlight': { actions: ActionFunction; }; 'tag.unhighlight': { actions: ActionFunction; }; 'toggle.feature': { actions: ActionFunction; }; 'update.features': { actions: ActionFunction[]; }; 'update.view': ({ target: string; guard: "is another view"; actions?: never; } | { actions: ActionFunction; })[]; 'walkthrough.start': { target: string; guard: "is dynamic view"; }; 'xyflow.edgeClick': { actions: ( ActionFunction | ActionFunction)[]; }; 'xyflow.edgeDoubleClick': { guard: GuardPredicate; actions: ActionFunction[]; }; 'xyflow.edgeMouseEnter': { actions: ActionFunction; }; 'xyflow.edgeMouseLeave': { actions: ActionFunction; }; 'xyflow.centerViewport': { actions: ActionFunction; }; 'xyflow.fitDiagram': { guard: "enabled: FitView"; actions: ( ActionFunction | ActionFunction)[]; }; 'xyflow.nodeClick': { actions: ( ActionFunction | ActionFunction)[]; }; 'xyflow.nodeMouseEnter': { actions: ActionFunction; }; 'xyflow.nodeMouseLeave': { actions: ActionFunction; }; 'xyflow.paneClick': { actions: ( ActionFunction | ActionFunction)[]; }; 'xyflow.paneDblClick': { actions: CancelAction[]; }; 'xyflow.resized': { guard: ({ context }: GuardArgs) => boolean; actions: CancelAction[]; }; 'xyflow.setViewport': { actions: ActionFunction; }; }; };