main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/// <reference types="react" />
import type { RenderOpts } from './types';
import { createErrorHandler } from './create-error-handler';
/**
* Create a component that renders the Flight stream.
* This is only used for renderToHTML, the Flight response does not need additional wrappers.
*/
export declare function createServerComponentRenderer<Props>(ComponentToRender: (props: Props) => any, ComponentMod: {
renderToReadableStream: any;
__next_app__?: {
require: any;
loadChunk: any;
};
}, { transformStream, clientReferenceManifest, serverContexts, rscChunks, }: {
transformStream: TransformStream<Uint8Array, Uint8Array>;
clientReferenceManifest: NonNullable<RenderOpts['clientReferenceManifest']>;
serverContexts: Array<[
ServerContextName: string,
JSONValue: Object | number | string
]>;
rscChunks: Uint8Array[];
}, serverComponentsErrorHandler: ReturnType<typeof createErrorHandler>, nonce?: string): (props: Props) => JSX.Element;