import { EditorView } from '@milkdown/kit/prose/view'; import { KeyboardEvent } from 'react'; /** * Keyboard order for the whole block: each variant's toolbar controls, then the * header Plus button — so Tab can reach Add after the last variant. */ export declare function getBlockControlFocusables(vcRoot: HTMLElement): HTMLElement[]; /** * Get the reference to the DOM element at the cursor position so they can be focused */ export declare function getVariantDomAtCursor(view: EditorView): HTMLElement | null; /** * Focus the body of the variant DOM element. */ export declare function focusVariantDomBody(view: EditorView, variantDom: HTMLElement): void; /** * Tab/Shift+Tab walks all controls in the variable_content block (variant toolbars, * then Plus). Esc / leaving either end returns focus to a variant body. */ export declare function handleBlockControlsKeyDown(event: KeyboardEvent, view: EditorView): void; /** * Tab from inside a content_variant moves focus to that variant's channel controls. * Further Tab moves across the whole variable_content control ring (see NodeView). */ export declare const variableContentKeymap: import('@milkdown/utils').$Prose;