securityos/node_modules/next/dist/server/app-render/use-flight-response.d.ts

9 lines
594 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/// <reference types="react" />
import type { ClientReferenceManifest } from '../../build/webpack/plugins/flight-manifest-plugin';
import type { FlightResponseRef } from './flight-response-ref';
/**
* Render Flight stream.
* This is only used for renderToHTML, the Flight response does not need additional wrappers.
*/
export declare function useFlightResponse(writable: WritableStream<Uint8Array>, flightStream: ReadableStream<Uint8Array>, clientReferenceManifest: ClientReferenceManifest, flightResponseRef: FlightResponseRef, formState: null | any, nonce?: string): Promise<JSX.Element>;