import { EditorActorContext, EditorActorEmitedEvent, EditorActorEvent, EditorActorInput, EditorActorStateTag } from './types'; import { SetupReturn, PromiseActorLogic, EventObject, NonReducibleUnknown, MetaObject } from 'xstate'; import { HotkeyActorLogic } from './hotkey'; import type * as t from '@likec4/core/types'; export declare namespace EditorCalls { type ApplyLatestToManual = (params: { input: ApplyLatestToManual.Input; }) => Promise; namespace ApplyLatestToManual { type Input = { viewId: t.ViewId; current: t.LayoutedView | undefined; }; type Output = { updated: t.LayoutedView; }; } type ApplySemanticLayout = (params: { input: ApplySemanticLayout.Input; }) => Promise; namespace ApplySemanticLayout { type Input = { viewId: t.ViewId; }; type Output = {}; } type ExecuteChange = (params: { input: ExecuteChange.Input; }) => Promise; namespace ExecuteChange { type Input = { viewId: t.ViewId; changes: t.ViewChange[]; }; /** * Returns the changes that were applied to the view */ type Output = { requested: t.ViewChange[]; applied: t.ViewChange[]; }; } } export declare const machine: SetupReturn; executeChange: PromiseActorLogic; applySemanticLayout: PromiseActorLogic; hotkey: HotkeyActorLogic; }, { hotkey: "hotkey"; }, {}, { 'has pending': unknown; 'can undo': unknown; 'can redo': unknown; }, "500ms" | "wait-after-edit", EditorActorStateTag, EditorActorInput, NonReducibleUnknown, EditorActorEmitedEvent, MetaObject>;