import type { OptionProps, SelectProps } from './defaults' import type { ExtractPropTypes, InjectionKey } from 'vue' import type { Option } from './select.types' export interface SelectV2Context { props: ExtractPropTypes expanded: boolean onSelect: (option: Option, index: number, byClick?: boolean) => void onHover: (idx: number) => void onKeyboardNavigate: (direction: 'forward' | 'backward') => void onKeyboardSelect: () => void } export const selectV2InjectionKey = 'ElSelectV2Injection' as any as InjectionKey export type IOptionProps = ExtractPropTypes export type ISelectProps = ExtractPropTypes