/** Explains a control that is inert because the editor is in view-only. */ export declare const VIEW_ONLY_REASON = "View only \u2014 switch to Editing to change this."; export type ImportedRoutePresentation = 'editable-layers' | 'source-preview'; /** * Chooses the visible surface for a route whose DOM has already been imported. * * Imported layers are an editing model, not the source screen itself. View-only * therefore keeps the captured source preview on screen whenever one exists; * switching to Editing is the explicit hand-off to the reconstructed layers. * A missing preview falls back to layers instead of turning the frame blank. */ export declare function resolveImportedRoutePresentation({ editMode, sourcePreviewAvailable, }: { editMode: boolean; sourcePreviewAvailable: boolean; }): ImportedRoutePresentation; interface ModeKeyEvent { key: string; code?: string; metaKey?: boolean; ctrlKey?: boolean; shiftKey?: boolean; altKey?: boolean; } /** * True when this keystroke would change the design and the editor is not in * edit mode. Selection, zoom, panning, tool switching and copy are absent * from the lists above by design — reading a canvas needs all of them. */ export declare function viewOnlyBlocksKey(editMode: boolean, event: ModeKeyEvent): boolean; export {};