import { UseScriptOptions as UseScriptOptions$1, ScriptInstance, UseScriptStatus, UseFunctionType } from 'unhead/scripts'; export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, UseFunctionType, UseScriptResolvedInput, UseScriptStatus, WarmupStrategy, createSpyProxy, resolveScriptKey } from 'unhead/scripts'; import { ScriptWithoutEvents, DataKeys, SchemaAugmentations, HeadEntryOptions } from 'unhead/types'; import { Ref } from 'vue'; import { o as ResolvableProperties, V as VueHeadClient } from './shared/vue.DoxLTFJk.js'; interface VueScriptInstance> extends Omit, 'status'> { status: Ref; } type UseScriptInput = string | (ResolvableProperties> & { src: string; }); interface UseScriptOptions = Record> extends Omit, Pick, 'use' | 'eventContext' | 'beforeInit'> { /** * The trigger to load the script: * - `undefined` | `client` - (Default) Load the script on the client when this js is loaded. * - `manual` - Load the script manually by calling `$script.load()`, exists only on the client. * - `Promise` - Load the script when the promise resolves, exists only on the client. * - `Function` - Register a callback function to load the script, exists only on the client. * - `server` - Have the script injected on the server. * - `ref` - Load the script when the ref is true. */ trigger?: UseScriptOptions$1['trigger'] | Ref; /** * Unhead instance. */ head?: VueHeadClient; } type UseScriptContext> = VueScriptInstance; type UseScriptReturn> = UseScriptContext, T>>; declare function useScript = Record>(_input: UseScriptInput, _options?: UseScriptOptions): UseScriptReturn; export { useScript }; export type { UseScriptContext, UseScriptInput, UseScriptOptions, UseScriptReturn, VueScriptInstance };