import * as vue from 'vue'; import { WebStreamableHeadContext } from 'unhead/stream/server'; export { CreateStreamableServerHeadOptions, StreamingTemplateParts, createBootstrapScript, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, renderShell, wrapStream } from 'unhead/stream/server'; import { ResolvableHead, SSRHeadPayload, CreateStreamableServerHeadOptions } from 'unhead/types'; import { V as VueHeadClient } from '../shared/vue.CajUUuy2.js'; /** * Streaming script component - outputs inline script with current head state. * The Vite plugin with streaming: true auto-injects this. */ declare const HeadStream: vue.DefineComponent<{}, () => vue.VNode | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>; /** * Vue-specific context returned by createStreamableHead. * Extends WebStreamableHeadContext with Vue-specific head type. */ interface VueStreamableHeadContext extends Omit, 'head'> { /** * The Vue head instance to use with app.use(head) */ head: VueHeadClient; } /** * Creates a head instance configured for Vue streaming SSR. * * @example * ```ts * export async function render(url: string, template: string) { * const { app, router } = createApp() * const { head, wrapStream } = createStreamableHead() * * app.use(head) * app.mixin(VueHeadMixin) * router.push(url) * * // Create stream first - Vue starts rendering synchronously * const vueStream = renderToWebStream(app) * * // Wait for router - by now Vue's sync render has pushed head entries * await router.isReady() * * return wrapStream(vueStream, template) * } * ``` */ declare function createStreamableHead(options?: Omit): VueStreamableHeadContext; export { HeadStream, VueHeadClient, createStreamableHead }; export type { VueStreamableHeadContext };