import type { InjectionKey, Ref } from 'vue' import type { Trigger } from './tooltip' export type ElTooltipInjectionContext = { controlled: Ref id: Ref open: Ref trigger: Ref onOpen: (e?: Event) => void onClose: (e?: Event) => void onToggle: (e: Event) => void onShow: () => void onHide: () => void onBeforeShow: () => void onBeforeHide: () => void updatePopper: () => void } export const TOOLTIP_INJECTION_KEY: InjectionKey = Symbol('elTooltip')