interface FocusgroupEngineOptions { getItems: () => HTMLElement[]; getOrientation: () => 'horizontal' | 'vertical'; } /** * `RovingTabindexEngine` * * Fallback focus engine for composite widgets. It replicates the semantics of * the Open UI `focusgroup` proposal until browsers ship it natively: * * - Directional navigation (arrow keys) restricted to the widget's axis and * resolved in logical direction (`direction`-aware: RTL swaps the arrow * mapping; `writing-mode` is NOT consulted), wrapping around at both ends. * - `Home` / `End` move focus to the first / last item. * - Roving tabindex entry point: the entry item is the only tab stop of the * group; every other item gets `tabindex="-1"`. * * The engine ONLY moves DOM focus. Selection is committed elsewhere * (focusin / click / activation handlers), mirroring the native model where * focus and selection are decoupled. Cross-axis keys are never handled nor * canceled, so they remain available for scrolling or supplementary actions. */ export declare class RovingTabindexEngine { #private; constructor({ getItems, getOrientation }: FocusgroupEngineOptions); attach(container: HTMLElement | undefined): void; detach(): void; /** * No-op: the fallback resolves orientation live on every keydown, so there * is no orientation-dependent state to push. It exists to keep the engine * interface symmetric with `NativeFocusgroupEngine`. */ syncOrientation(): void; /** * Roving tabindex: `entryItem` becomes the only tab stop of the group. * Idempotent; safe to call on every selection commit or slot change. */ setEntryItem(entryItem: HTMLElement | undefined): void; } export {};