import { InjectionKey, ComponentInternalInstance, Ref } from 'vue'; export type RelationParent = T & { children: ComponentInternalInstance[]; addChild: (child: ComponentInternalInstance) => void; removeChild: (child: ComponentInternalInstance) => void; }; export interface UseRelationProvider { index: Ref; parent: (RelationParent & { [key: string]: unknown; }) | null; } export declare const useRelation: (key: string | InjectionKey>) => UseRelationProvider;