UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

28 lines • 1.12 kB
import { CachedResponse, RendererEvent, RendererRouteRules } from "./runtime.js"; import { Script } from "@unhead/vue"; import { NuxtPayload, NuxtSSRContext } from "#app/types"; //#region src/runtime/server/renderer/payload.d.ts export declare function renderPayloadResponse(ssrContext: NuxtSSRContext, event: RendererEvent): CachedResponse; export declare function renderPayloadJsonScript(opts: { ssrContext: NuxtSSRContext; data?: any; src?: string; }): Script[]; export declare function renderPayloadScript(opts: { ssrContext: NuxtSSRContext; routeOptions: RendererRouteRules; data?: any; src?: string; }): Script[]; export declare function getPayloadKeySizes(data: NuxtPayload['data'] | undefined, reducers: NuxtSSRContext['~payloadReducers']): Array<[string, number]>; interface SplitPayload { initial: Omit<NuxtPayload, 'data' | 'prefetchLinks'>; payload: { data?: NuxtPayload['data']; prerenderedAt?: NuxtPayload['prerenderedAt']; prefetchLinks?: NuxtPayload['prefetchLinks']; }; } export declare function splitPayload(ssrContext: NuxtSSRContext): SplitPayload; //#endregion export {};