///
export declare type ReactReadableStream = ReadableStream & {
allReady?: Promise | undefined;
};
export declare function readableStreamTee(readable: ReadableStream): [ReadableStream, ReadableStream];
export declare function chainStreams(streams: ReadableStream[]): ReadableStream;
export declare function streamFromArray(strings: string[]): ReadableStream;
export declare function streamToString(stream: ReadableStream): Promise;
export declare function encodeText(input: string): Uint8Array;
export declare function decodeText(input?: Uint8Array, textDecoder?: TextDecoder): string;
export declare function createBufferedTransformStream(transform?: (v: string) => string | Promise): TransformStream;
export declare function createFlushEffectStream(handleFlushEffect: () => string): TransformStream;
export declare function createHeadInjectionTransformStream(inject: () => string): TransformStream;
export declare function renderToInitialStream({ ReactDOMServer, element, streamOptions, }: {
ReactDOMServer: any;
element: React.ReactElement;
streamOptions?: any;
}): Promise;
export declare function continueFromInitialStream(renderStream: ReactReadableStream, { suffix, dataStream, generateStaticHTML, flushEffectHandler, flushEffectsToHead, initialStylesheets, }: {
suffix?: string;
dataStream?: ReadableStream;
generateStaticHTML: boolean;
flushEffectHandler?: () => string;
flushEffectsToHead: boolean;
initialStylesheets?: string[];
}): Promise>;
export declare function createSuffixStream(suffix: string): TransformStream;
export declare function createDeferredSuffixStream(suffix: string): TransformStream;
export declare function createInlineDataStream(dataStream: ReadableStream): TransformStream;