import type { Worker } from "node:worker_threads";
import type { CheckFilesExistReturn, CreateHandlerOptions, PageData } from "../../types.js";
import { type Manifest, type IndexHtmlTransformHook } from "vite";
type RenderPagesOptions<T = any> = Omit<CreateHandlerOptions<T>, "url" | "route" | "getCss" | "propsPath" | "pagePath"> & {
    clientManifest: Manifest;
    serverManifest: Manifest;
    worker: Worker;
    loader: (id: string) => Promise<Record<string, any>>;
    onCssFile?: (url: string, parentUrl: string) => void;
    onClientJSFile?: (url: string, parentUrl: string) => void;
    onPage?: (pageData: PageData) => Promise<void>;
    clientCss?: string[];
    transformIndexHtml: IndexHtmlTransformHook;
    outDir: string;
    htmlOutputPath: string;
    server?: any;
    bundle?: any;
    chunk?: any;
    originalUrl?: string;
};
export declare function renderPages<T = any>(routes: string[], files: CheckFilesExistReturn, options: RenderPagesOptions<T>): Promise<{
    failedRoutes: Map<string, Error>;
    completedRoutes: Set<string>;
}>;
export {};
//# sourceMappingURL=renderPages.d.ts.map