/**
 * Next.js HTML page generation
 * Standalone functions extracted from NextDevServer for generating
 * App Router HTML, Pages Router HTML, and 404 pages.
 */
import { ResponseData } from '../dev-server';
/** Resolved App Router route with page, layouts, and UI convention files */
export interface AppRoute {
    page: string;
    layouts: string[];
    params: Record<string, string | string[]>;
    loading?: string;
    error?: string;
    notFound?: string;
}
/** Context needed by HTML generation functions */
export interface HtmlGeneratorContext {
    port: number;
    exists: (path: string) => boolean;
    generateEnvScript: () => string;
    loadTailwindConfigIfNeeded: () => Promise<string>;
    /** Additional import map entries (e.g., framework-specific CDN mappings) */
    additionalImportMap?: Record<string, string>;
    /** Deployment base path prefix (e.g., '/almostnode' for GitHub Pages subpath) */
    deploymentBasePath?: string;
}
/**
 * Generate HTML for App Router with nested layouts
 */
export declare function generateAppRouterHtml(ctx: HtmlGeneratorContext, route: AppRoute, pathname: string): Promise<string>;
/**
 * Generate HTML shell for a Pages Router page
 */
export declare function generatePageHtml(ctx: HtmlGeneratorContext, pageFile: string, pathname: string): Promise<string>;
/**
 * Serve a basic 404 page
 */
export declare function serve404Page(port: number, deploymentBasePath?: string): ResponseData;
//# sourceMappingURL=next-html-generator.d.ts.map