import type { Ref } from 'vue'; import type { NuxtUseScriptOptions } from './types.js'; export interface NpmScriptStubOptions { key: string; use?: () => any; clientInit?: () => void | Promise; trigger?: NuxtUseScriptOptions['trigger']; } export interface NpmScriptStub { status: Ref<'awaitingLoad' | 'loading' | 'loaded' | 'error'>; load: () => Promise; onLoaded: (callback: (api: T) => void) => void; proxy: T; $script?: any; } /** * Creates a script stub for NPM-only packages (no external script tag) * Manages lifecycle and status without relying on script tag loading */ export declare function createNpmScriptStub(options: NpmScriptStubOptions): NpmScriptStub;