import { StopAction, ActionFunction, PromiseActorLogic, EventObject } from 'xstate'; import { EditorActorContext, EditorActorEvent, EditorActorEmitedEvent } from './types'; import { HotkeyActorLogic } from './hotkey'; export declare const editor: { initial: string; states: { idle: { on: { 'edit.move.start': { target: "#moving"; }; }; id: string; }; moving: { entry: StopAction[]; exit: ActionFunction; id: string | undefined; } | { src: "executeChange"; logic: PromiseActorLogic; id: string | undefined; } | { src: "applySemanticLayout"; logic: PromiseActorLogic; id: string | undefined; }, never, { type: "has pending"; params: unknown; } | { type: "can undo"; params: unknown; } | { type: "can redo"; params: unknown; }, "500ms" | "wait-after-edit", EditorActorEmitedEvent>[]; on: { 'edit.move.end': { target: "#idle"; actions: ActionFunction; id: string | undefined; } | { src: "executeChange"; logic: PromiseActorLogic; id: string | undefined; } | { src: "applySemanticLayout"; logic: PromiseActorLogic; id: string | undefined; }, never, { type: "has pending"; params: unknown; } | { type: "can undo"; params: unknown; } | { type: "can redo"; params: unknown; }, "500ms" | "wait-after-edit", EditorActorEmitedEvent>; }; 'edit.move.cancel': { target: "#idle"; actions: ActionFunction; id: string | undefined; } | { src: "executeChange"; logic: PromiseActorLogic; id: string | undefined; } | { src: "applySemanticLayout"; logic: PromiseActorLogic; id: string | undefined; }, never, never, never, never>; }; cancel: { target: "#idle"; actions: ActionFunction; id: string | undefined; } | { src: "executeChange"; logic: PromiseActorLogic; id: string | undefined; } | { src: "applySemanticLayout"; logic: PromiseActorLogic; id: string | undefined; }, never, never, never, never>; }; }; id: string; }; }; on: { '*': { actions: ActionFunction; id: string | undefined; } | { src: "executeChange"; logic: PromiseActorLogic; id: string | undefined; } | { src: "applySemanticLayout"; logic: PromiseActorLogic; id: string | undefined; }, never, { type: "has pending"; params: unknown; } | { type: "can undo"; params: unknown; } | { type: "can redo"; params: unknown; }, "500ms" | "wait-after-edit", EditorActorEmitedEvent>; }; }; };