vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
21 lines • 720 B
TypeScript
/**
* collectRscContent.ts
*
* PURPOSE: Collects RSC content from a stream with metrics
*
* This module:
* 1. Collects RSC content from the provided stream
* 2. Tracks metrics (chunks, bytes, duration)
* 3. Returns buffered content and metrics
* 4. Does NOT write files - that's the caller's responsibility
*/
import type { CollectRscContentFn } from "./types.js";
/**
* Collects RSC content from a stream with metrics
*
* @param rsc The stream containing the RSC content
* @param handlerOptions The options for the handler
* @returns A promise that resolves with buffered content and metrics
*/
export declare const collectRscContent: CollectRscContentFn;
//# sourceMappingURL=collectRscContent.d.ts.map