import { SelectProps } from './defaults' import type { ExtractPropTypes, InjectionKey } from 'vue' import type { Option } from './select.types' export interface SelectGroupContext { options: [] } export interface SelectContext { props: ExtractPropTypes expanded: boolean onSelect: (option: Option, index: number, byClick?: boolean) => void onKeyboardNavigate: (direction: 'forward' | 'backward') => void onKeyboardSelect: () => void } export const selectGroupKey = 'ElSelectGroup' as unknown as InjectionKey export const selectKey = 'ElSelect' as unknown as InjectionKey