/** * 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 { SSR_ON_MARKER_ATTR } from './directive-support'; export type { SSRDirectiveMode, UnsupportedDirectiveStrategy } from './directive-support'; export { detectHydrationMismatches, hydrate } from './hydration'; export type { DetectHydrationOptions, HydrateOptions, HydrateResult, HydrationBoundaryMismatch, HydrationMismatchKind, MismatchStrategy, } from './hydration'; 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 { createSSRMetrics } from './metrics'; export type { SSRMetrics, SSRMetricsSnapshot } from './metrics'; export { createSSRCache, flushBoundary, renderToResponse, renderToStream, renderToStringAsync, } from './render-async'; export type { AsyncRenderOptions, AsyncSSRResult, RenderToResponseCacheOptions, RenderToResponseOptions, } from './render-async'; export type { SSRCache, SSRCacheEntry, SSRCacheOptions, SSRCacheRequest } from './cache'; 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 { createResumableBoundary, createResumableGraph, RESUMABLE_BOUNDARY_ATTR, RESUMABLE_EVENT_ATTR, RESUMABLE_HANDLER_ATTR, resume, } from './resumable-boundary'; export type { CreateResumableBoundaryOptions, ResumableBoundary, ResumableGraph, ResumableHandler, ResumableRenderOptions, ResumableSlice, ResumeOptions, ResumeResult, SerializedResumableBoundary, SerializedResumableGraph, StandaloneResumableBoundary, } from './resumable-boundary'; export { createBunHandler, createDenoHandler, createEdgeHandler, createNodeHandler, createSSRHandler, createWebHandler, } from './adapters'; export type { EdgeHandlerOptions, NodeHandlerOptions, NodeIncomingMessage, NodeServerResponse, SSRRequestHandler, } from './adapters'; //# sourceMappingURL=index.d.ts.map