import type { Ref } from '@stacksjs/stx'; /** * Inject a script tag into the document. */ export declare function useScriptTag(src: string, onLoaded?: (el: HTMLScriptElement) => void, options?: UseScriptTagOptions): UseScriptTagReturn; export declare interface UseScriptTagOptions { immediate?: boolean type?: string async?: boolean defer?: boolean crossOrigin?: string referrerPolicy?: string manual?: boolean attrs?: Record } export declare interface UseScriptTagReturn { scriptTag: Ref load: () => Promise unload: () => void }