import type { RenderEnvironment } from "../context/render-context.js"; import type { HTMLGenerationContext, HTMLGeneratorConfig } from "./html-types.js"; export type { HTMLGenerationContext, HTMLGeneratorConfig } from "./html-types.js"; export declare function resolveRenderEnvironment(requestEnvironment?: RenderEnvironment, configuredEnvironment?: RenderEnvironment): RenderEnvironment; export declare function resolveErrorContentSourceEnvironment(isLocalProject: boolean, environment: RenderEnvironment, releaseId?: string): RenderEnvironment; export declare function resolveErrorContentSourceParameters(isLocalProject: boolean, requestEnvironment: RenderEnvironment | undefined, configuredEnvironment: RenderEnvironment | undefined, options: { releaseId?: string; contentSourceId?: string; } | undefined): { environment: RenderEnvironment; contentSourceEnvironment: RenderEnvironment; releaseId?: string; }; export declare class HTMLGenerator { private config; constructor(config: HTMLGeneratorConfig); generateFullHTML(context: HTMLGenerationContext): Promise; generateHTMLStream(reactStream: ReadableStream, context: Omit): Promise; private handleFullHTMLDocument; private resolveProjectStylesheetHref; private detectUseClientDirective; private wrapHTMLFragment; private generateShellParts; private resolveAppPath; /** * Resolve + load the nearest app-router `error.tsx` for the route's segment and * build a ready-to-render element with the caught error. Returns the element * (for the SSR error render) and the boundary's absolute source path (embedded * as `errorPath` so the client hydration bundle wraps the same boundary and it * hydrates). Null when the project has no matching `error.tsx`. */ resolveErrorComponent(context: HTMLGenerationContext, error: Error): Promise<{ element: unknown; path: string; } | null>; resolveErrorComponentPath(context: HTMLGenerationContext): Promise<{ component: unknown; path: string; } | null>; private loadProjectFile; private buildHTMLOptions; /** * Load CSS files imported by components and merge with the global stylesheet. * Deduplicates against the configured Tailwind stylesheet path to avoid * double-loading globals.css when it's both auto-discovered and explicitly imported. */ private mergeImportedCSS; } //# sourceMappingURL=html.d.ts.map