import type { CreateHandlerOptions } from "../types.js";
import type { RscRenderResult } from "./renderRscStream.types.js";
import type { StreamHandlers } from "../worker/types.js";
/**
 * Intuitive RSC stream renderer that works on both client and server
 *
 * Usage:
 * const result = renderRscStream(options, handlers);
 *
 * // Pipe to any destination
 * result.rscStream.pipe(fileStream);
 * result.pipe(response); // convenience method
 *
 * // Access the stream directly
 * result.stream.on('data', (chunk) => console.log(chunk));
 *
 * // Abort if needed
 * result.abort('User cancelled');
 */
export declare function renderRscStream(options: CreateHandlerOptions, handlers?: Pick<StreamHandlers<"server">, "onError" | "onPostpone" | "onEnd" | "onData">): RscRenderResult;
//# sourceMappingURL=renderRscStream.server.d.ts.map