/** * SSR / Pre-rendering module for bQuery.js. * * Server-side rendering, hydration, store-state serialization and runtime * adapters for bQuery applications. The module is **runtime-agnostic** and * runs on Bun, Deno and Node.js ≥ 24 without any external dependency. * * The synchronous `renderToString()` keeps its previous behaviour for * backward compatibility but now automatically falls back to a fully * DOM-free renderer when no `DOMParser` is available — that is what makes * the same code path work on every server runtime. * * ## Highlights * * - **`renderToString(template, data)`** — synchronous render to HTML. * - **`renderToStringAsync(template, data, ctx?)`** — awaits Promises and * `defer()` values in the binding context. * - **`renderToStream(template, data, ctx?)`** — Web `ReadableStream`. * - **`renderToResponse(template, data, ctx?)`** — high-level `Response` * wrapper with ETag, Cache-Control, head & store-state injection. * - **`createSSRContext(...)`** — request/response context bag. * - **`createHeadManager()`** — ``, `<meta>`, `<link>` and * `<script>` collection. * - **`hydrateMount` / `hydrateOnVisible` / `hydrateOnIdle` / * `hydrateOnInteraction` / `hydrateOnMedia` / `hydrateIsland`** — full * progressive-hydration toolkit. * - **Runtime adapters** — `createWebHandler`, `createBunHandler`, * `createDenoHandler`, `createNodeHandler`, `createSSRHandler`. * * @module bquery/ssr */ export { hydrateMount } from './hydrate'; export type { HydrateMountOptions } from './hydrate'; export { renderToString } from './render'; export { deserializeStoreState, hydrateStore, hydrateStores, serializeStoreState, } from './serialize'; export type { SerializeResult } from './serialize'; export type { DeserializedStoreState, HydrationOptions, RenderOptions, SSRResult, SerializeOptions, } from './types'; export { detectRuntime, getSSRRuntimeFeatures, isBrowserRuntime, isServerRuntime } from './runtime'; export type { SSRRuntime, SSRRuntimeFeatures } from './runtime'; export { configureSSR, getSSRConfig } from './config'; export type { SSRDocumentImpl, SSRRendererBackend } from './config'; export { renderToResponse, renderToStream, renderToStringAsync } from './render-async'; export type { AsyncRenderOptions, AsyncSSRResult, RenderToResponseOptions } from './render-async'; export { createSSRContext } from './context'; export type { CreateSSRContextOptions, SSRContext } from './context'; export { createAssetManager, createHeadManager } from './head'; export type { AssetManager, HeadManager, SSRAsset, SSRHeadState, SSRLink, SSRMeta, SSRScript, UseHeadOptions, } from './head'; export { defer, defineLoader } from './async'; export type { SSRLoader } from './async'; export { hydrateIsland, hydrateOnIdle, hydrateOnInteraction, hydrateOnMedia, hydrateOnVisible, } from './strategies'; export type { HydrationHandle } from './strategies'; export { verifyHydration } from './mismatch'; export type { HydrationMismatch, VerifyHydrationOptions } from './mismatch'; export { HYDRATION_HASH_ATTR } from './hash'; export { renderToStreamSuspense } from './suspense'; export type { SuspenseStreamOptions } from './suspense'; export { createSSRRouterContext, resolveSSRRoute, runRouteLoaders } from './router-bridge'; export type { ResolvedSSRRoute, SSRRouteLoader } from './router-bridge'; export { hydrateStoreSnapshot, readStoreSnapshot, serializeStoreSnapshot } from './store-snapshot'; export type { HydrateSnapshotOptions, HydrateSnapshotResult, SerializeSnapshotOptions, SerializeSnapshotResult, SSRStoreSnapshot, } from './store-snapshot'; export { createResumableState, resumeState } from './resumability'; export type { CreateResumableStateOptions, ResumableState, ResumeReader } from './resumability'; export { createBunHandler, createDenoHandler, createNodeHandler, createSSRHandler, createWebHandler, } from './adapters'; export type { NodeHandlerOptions, NodeIncomingMessage, NodeServerResponse, SSRRequestHandler, } from './adapters'; //# sourceMappingURL=index.d.ts.map