import type { InjectionKey, ComponentInternalInstance } from 'vue'; type ParentProvide = T & { add(child: ComponentInternalInstance): void; remove(child: ComponentInternalInstance): void; internalChildren: ComponentInternalInstance[]; }; export declare function useInject(key: InjectionKey>): { parent: ParentProvide; index: import("vue").ComputedRef; } | { parent: null; index: import("vue").Ref; }; export {};