import * as _$node_modules_piscina_dist_types0 from "node_modules/piscina/dist/types"; import * as _$worker_threads from "worker_threads"; //#region src/node/ssg-worker.d.ts /** * SSG Worker — runs in a Node.js worker_thread. * * Each worker loads the SSR entry once, then processes render jobs sent * by the main thread. Multiple workers (one per CPU core) run in parallel * so CPU-bound React.renderToString calls are distributed across cores. * * IMPORTANT: imports from this package must be STATIC (not dynamic) so * tsdown bundles them into the worker file. A dynamic import like * `await import('./router-adapter')` would try to resolve a separate * file at runtime that doesn't exist. * * Cache the adapter after warm-up so per-page renders skip the * expensive createRoot(false, path) call. Results use a plain structured-clone * payload so the worker protocol stays compatible across ESM and CJS builds. */ declare function renderTask(msg: { type: string; path?: string; paths?: string[]; }): Promise<_$node_modules_piscina_dist_types0.Transferable | _$worker_threads.MessagePort | ArrayBuffer | ArrayBufferView | Record>; //#endregion export { renderTask as default };