/** * Roving Tabindex 管理器 * 实现 WAI-ARIA 的 Roving Tabindex 模式,用于管理复合组件内的焦点导航 * * @example * const roving = new RovingTabindex({ * orientation: 'horizontal', * loop: true, * onActivate: (index) => this._selectItem(index), * }); * roving.setItems(items); * * @see https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex */ export declare class RovingTabindex { private _items; private _currentIndex; private _orientation; private _loop; private _onActivate?; private _onFocus?; constructor(options: { orientation?: "horizontal" | "vertical" | "both"; loop?: boolean; onActivate?: (index: number) => void; onFocus?: (index: number) => void; }); setItems(items: HTMLElement[]): void; handleKeydown(e: KeyboardEvent): void; getCurrentIndex(): number; focusItem(index: number): void; /** 更新当前索引和 tabindex,但不移动焦点 */ setCurrentIndex(index: number): void; destroy(): void; private _moveToNext; private _moveToPrev; private _moveToFirst; private _moveToLast; private _updateTabindices; } //# sourceMappingURL=roving-tabindex.d.ts.map