/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { type CriticalCssPlan } from '../../utils/beasties'; export interface RenderOptions { /** The server index html the route renders into. */ document: string; /** The `ngCspNonce` attribute value of the document. */ nonce: string | undefined; /** The browser index file name, which prerendering "/" replaces. */ indexFile: string; /** * Whether the build emits `index.original.html`, which prerendering "/" * must then not replace with the browser index. */ emitsOriginalIndex: boolean; deployUrl: string; inlineCriticalCss: boolean; minifyCss: boolean; outputPath: string; serverBundlePath: string; route: string; } export interface RenderWorkerData { /** * The zone.js package loaded during worker initialization, or `false` for * zoneless applications. */ zonePackage: string | false; /** * Set when critical CSS is inlined from compiled plans, which * `@angular/build` >= 22.2 does. */ criticalCssPlans: CriticalCssPlan[] | undefined; } export interface RenderResult { errors?: string[]; warnings?: string[]; } /** * Renders each route in routes and writes them to //index.html. */ declare function render({ document, nonce, indexFile, emitsOriginalIndex, deployUrl, minifyCss, outputPath, serverBundlePath, route, inlineCriticalCss, }: RenderOptions): Promise; /** * The default export will be the promise returned by the initialize function. * This is awaited by piscina prior to using the Worker. */ declare const _default: Promise; export default _default; //# sourceMappingURL=render-worker.d.ts.map