import { u as ViteReactSSGOptions } from "./types-BsuhlEJb.cjs"; import { InlineConfig, ViteDevServer } from "vite"; //#region src/node/build.d.ts declare function build(ssgOptions?: Partial, viteConfig?: InlineConfig): Promise; //#endregion //#region src/node/dev.d.ts declare global { var __ssr_start_time: number | undefined; } /** * Creates a customized Vite development server for SSG. * * When `skipResolveConfig` is set in ssgOptions, the expensive Vite * `resolveConfig()` call is skipped — the caller is responsible for * providing a fully-formed `InlineConfig`. Entry path resolution is * performed manually (simple `join(root, entry)`) instead of going * through Vite's resolver, which shaves ~100-200 ms off dev startup. */ declare function createServer(viteConfig?: InlineConfig, ssgOptions?: Partial & { skipResolveConfig?: boolean; }): Promise; /** * Top-level dev function that starts server and sets up interaction loop. */ declare function dev(ssgOptions?: Partial, viteConfig?: InlineConfig, customOptions?: unknown): Promise; //#endregion //#region src/node/shell-stitcher.d.ts /** * Shell Stitcher — Fast template interpolation engine for SSG Layout Shells. * * Replaces markers in pre-rendered shell templates with * page-specific fragments (MDX content, TOC, meta tags, breadcrumbs, page nav). * * This decouples the SSG build engine from specific React theme components, * enabling headless theme extraction (e.g. moving ui-base/primitives to external themes). */ interface ShellSlots { content: string; toc?: string; meta?: string; breadcrumbs?: string; pageNav?: string; title?: string; } interface ShellStitcherOptions { /** Pre-rendered HTML template with markers */ template: string; } declare class ShellStitcher { private readonly template; constructor(options: ShellStitcherOptions); /** * Inject page fragments into template slot markers. */ stitch(slots: ShellSlots): string; } //#endregion export { type ShellSlots, ShellStitcher, type ShellStitcherOptions, build, createServer, dev };