/** * @license MIT * @module @whoj/utils-vue@2.4.0 * @copyright (c) 2026 Jonson B. */ import * as vue from 'vue'; import { Optional } from '@whoj/utils-types'; import { ComputedRefable } from './refOf.cjs'; type BuiltInLinkElAttrs = Pick; interface ConfigurableDocument { document?: Document; } interface UseLinkTagOptions extends ConfigurableDocument, Optional { attrs?: Record; blocking?: 'render'; crossOrigin?: 'anonymous' | 'use-credentials'; id?: string; immediate?: boolean; manual?: boolean; referrerPolicy?: 'origin' | 'unsafe-url' | 'no-referrer' | 'origin-when-cross-origin' | 'no-referrer-when-downgrade'; } declare function useLinkTag(href: ComputedRefable, onLoaded?: (el: HTMLLinkElement) => void, options?: UseLinkTagOptions): { linkTag: vue.Ref; load: (waitForLoad?: boolean) => Promise; loaded: vue.Ref; unload: () => void; }; type UseLinkTagReturn = ReturnType; export { useLinkTag }; export type { UseLinkTagOptions, UseLinkTagReturn };