import type { InjectionKey, Ref, StyleValue } from 'vue' import type { ElRovingFocusGroupProps } from './roving-focus-group' type EventHandler = (e: T) => void export type RovingGroupInjectionContext = { currentTabbedId: Ref dir: Ref loop: Ref orientation: Ref tabIndex: Ref rovingFocusGroupRef: Ref rovingFocusGroupRootStyle: Ref onBlur: EventHandler onFocus: EventHandler onMousedown: EventHandler onItemFocus: (id: string) => void onItemShiftTab: () => void } export type RovingFocusGroupItemInjectionContext = { rovingFocusGroupItemRef: Ref tabIndex: Ref handleMousedown: EventHandler handleFocus: EventHandler handleKeydown: EventHandler } export const ROVING_FOCUS_GROUP_INJECTION_KEY: InjectionKey = Symbol('elRovingFocusGroup') export const ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY: InjectionKey = Symbol('elRovingFocusGroupItem')