import type { Gizmo } from '../gizmo'; import type { GizmoTool } from '../gizmo-tool'; /** * An editing sub-mode hosted by a GizmoTool. * * GizmoTool is the toolbar-level interaction source; EditMode represents a * persistent mode inside it, such as default selection or inline text editing. */ export interface EditMode { readonly id: string; /** Whether this mode and its persistent session can survive a tool switch. */ canRemainActiveForTool(tool: GizmoTool): boolean; /** Create a fresh projection graph for the current tool rebuild. */ createGizmos(): Gizmo[]; onEnter?(): void; onExit?(): void; }