import { ComponentInternalInstance, ComputedRef, InjectionKey } from 'vue'; type ParentProvide = T & { link: (child: ComponentInternalInstance) => void; unlink: (child: ComponentInternalInstance) => void; children: ComponentInternalInstance[]; }; declare function useParent(key: InjectionKey>): { parent: ParentProvide | null; index: ComputedRef; }; export { useParent };