import { __name } from "../../_virtual/_rolldown/runtime.mjs"; import { HotkeyActorLogic } from "./hotkey.mjs"; import { inferChildrenRef, inferProvidedActor } from "../../utils/defineActors.mjs"; import { EditorActorContext, EditorActorEmitedEvent, EditorActorEvent, EditorActorInput, EditorActorStateTag } from "./types.mjs"; import * as t from "@likec4/core/types"; import { ActorRefFromLogic, StateMachine, StateValue } from "xstate"; //#region src/editor/actor/setup.d.ts 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[]; waitForViewSync: boolean; }; } } declare const actors: { hotkey: HotkeyActorLogic; applyLatest: import("xstate").PromiseActorLogic; executeChange: import("xstate").PromiseActorLogic; applySemanticLayout: import("xstate").PromiseActorLogic; }; /** * to workaround circular dependency issue between editor and diagram packages */ export interface BaseEditorActorLogic extends StateMachine, inferProvidedActor, never, never, never, State, EditorActorStateTag, EditorActorInput, never, EditorActorEmitedEvent, never, never> {} export type BaseEditorActorRef = ActorRefFromLogic; //#endregion