/**
 * Static Renderer
 *
 * When `src/web/entry-server.tsx` exists, this module:
 * 1. Runs a Vite SSR build (as a subprocess to avoid in-process Bun/Vite issues)
 * 2. Imports the built entry-server.js
 * 3. Discovers routes to pre-render:
 *    - If `routeTree` is exported: auto-discovers all non-parameterized routes
 *    - If `getStaticPaths()` is exported: merges those paths in (for parameterized routes)
 *    - If neither: throws an error
 * 4. Calls render(url) for each route
 * 5. Replaces <!--app-html--> in the client template with rendered HTML
 * 6. Writes pre-rendered HTML files to .agentuity/client/
 */
import type { Logger } from '../../../types';
/** Minimal shape of a TanStack Router route tree node. */
export interface RouteTreeNode {
    path?: string;
    options?: {
        path?: string;
    };
    children?: Record<string, RouteTreeNode>;
}
/**
 * Walks a TanStack Router route tree and extracts all non-parameterized paths.
 * Skips layout routes (no path) and parameterized routes (containing $).
 *
 * Accumulates the full URL path through the parent chain, since child routes
 * under layout routes have relative paths (e.g., '/key-value' under a
 * '/reference/api' layout should resolve to '/reference/api/key-value').
 */
export declare function extractRoutePaths(node: RouteTreeNode): string[];
export interface StaticRenderOptions {
    rootDir: string;
    logger: Logger;
    dev?: boolean;
}
export interface StaticRenderResult {
    routes: number;
    duration: number;
}
export declare function runStaticRender(options: StaticRenderOptions): Promise<StaticRenderResult>;
//# sourceMappingURL=static-renderer.d.ts.map