/// import type { FlightRouterState } from '../app-render/types'; import type RenderResult from '../render-result'; export type ReactReadableStream = ReadableStream & { allReady?: Promise | undefined; }; export declare const streamToBufferedResult: (renderResult: RenderResult) => Promise; export declare function cloneTransformStream(source: TransformStream): TransformStream; export declare function chainStreams(streams: ReadableStream[]): ReadableStream; export declare function streamFromString(str: string): ReadableStream; export declare function streamToString(stream: ReadableStream): Promise; export declare function createBufferedTransformStream(): TransformStream; export declare function createInsertedHTMLStream(getServerInsertedHTML: () => Promise): TransformStream; export declare function renderToInitialFizzStream({ ReactDOMServer, element, streamOptions, }: { ReactDOMServer: typeof import('react-dom/server.edge'); element: React.ReactElement; streamOptions?: any; }): Promise; export declare function createRootLayoutValidatorStream(assetPrefix: string | undefined, getTree: () => FlightRouterState): TransformStream; export declare function continueFizzStream(renderStream: ReactReadableStream, { suffix, inlinedDataStream, generateStaticHTML, getServerInsertedHTML, serverInsertedHTMLToHead, validateRootLayout, }: { inlinedDataStream?: ReadableStream; generateStaticHTML: boolean; getServerInsertedHTML?: () => Promise; serverInsertedHTMLToHead: boolean; validateRootLayout?: { assetPrefix?: string; getTree: () => FlightRouterState; }; suffix?: string; }): Promise>;