UNPKG

vite-plugin-react-server

Version:
27 lines 1.14 kB
import * as React from "react"; import type { PipeableStreamOptions } from "../worker/types.js"; import type { Logger } from "vite"; import type { CreateHandlerOptions, CssCollectorProps, CssContent, InlineCssCollectorProps } from "../types.js"; export declare function createRscStream<InlineCSS extends boolean = true>({ Html, Page, props, loader, moduleRootPath, moduleBasePath, moduleBaseURL, logger, cssFiles, route, url, pipableStreamOptions, htmlProps, inlineCss, CssCollector, root, }: { Html: CreateHandlerOptions["Html"]; Page: React.ComponentType<any>; loader: (id: string) => Promise<any>; props: any; moduleBase: string; moduleRootPath: string; moduleBasePath: string; moduleBaseURL: string; logger: Logger; route: string; url: string; pipableStreamOptions?: PipeableStreamOptions; htmlProps?: any; root: string; inlineCss?: InlineCSS; cssFiles?: (string | CssContent)[]; } & (InlineCSS extends true ? { CssCollector: React.FC<InlineCssCollectorProps>; } : { CssCollector: React.FC<CssCollectorProps>; })): any; //# sourceMappingURL=createRscStream.d.ts.map