Initial commit
This commit is contained in:
46
frontend/webapp/node_modules/next/dist/server/stream-utils/node-web-streams-helper.d.ts
generated
vendored
Normal file
46
frontend/webapp/node_modules/next/dist/server/stream-utils/node-web-streams-helper.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
export type ReactReadableStream = ReadableStream<Uint8Array> & {
|
||||
allReady?: Promise<void> | undefined;
|
||||
};
|
||||
export declare function chainStreams<T>(...streams: ReadableStream<T>[]): ReadableStream<T>;
|
||||
export declare function streamFromString(str: string): ReadableStream<Uint8Array>;
|
||||
export declare function streamFromBuffer(chunk: Buffer): ReadableStream<Uint8Array>;
|
||||
export declare function streamToBuffer(stream: ReadableStream<Uint8Array>): Promise<Buffer>;
|
||||
export declare function streamToString(stream: ReadableStream<Uint8Array>, signal?: AbortSignal): Promise<string>;
|
||||
export declare function createBufferedTransformStream(): TransformStream<Uint8Array, Uint8Array>;
|
||||
export declare function renderToInitialFizzStream({ ReactDOMServer, element, streamOptions, }: {
|
||||
ReactDOMServer: typeof import('react-dom/server.edge');
|
||||
element: React.ReactElement;
|
||||
streamOptions?: Parameters<typeof ReactDOMServer.renderToReadableStream>[1];
|
||||
}): Promise<ReactReadableStream>;
|
||||
export declare function createRootLayoutValidatorStream(): TransformStream<Uint8Array, Uint8Array>;
|
||||
export type ContinueStreamOptions = {
|
||||
inlinedDataStream: ReadableStream<Uint8Array> | undefined;
|
||||
isStaticGeneration: boolean;
|
||||
getServerInsertedHTML: () => Promise<string>;
|
||||
getServerInsertedMetadata: () => Promise<string>;
|
||||
validateRootLayout?: boolean;
|
||||
/**
|
||||
* Suffix to inject after the buffered data, but before the close tags.
|
||||
*/
|
||||
suffix?: string | undefined;
|
||||
};
|
||||
export declare function continueFizzStream(renderStream: ReactReadableStream, { suffix, inlinedDataStream, isStaticGeneration, getServerInsertedHTML, getServerInsertedMetadata, validateRootLayout, }: ContinueStreamOptions): Promise<ReadableStream<Uint8Array>>;
|
||||
type ContinueDynamicPrerenderOptions = {
|
||||
getServerInsertedHTML: () => Promise<string>;
|
||||
getServerInsertedMetadata: () => Promise<string>;
|
||||
};
|
||||
export declare function continueDynamicPrerender(prerenderStream: ReadableStream<Uint8Array>, { getServerInsertedHTML, getServerInsertedMetadata, }: ContinueDynamicPrerenderOptions): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
||||
type ContinueStaticPrerenderOptions = {
|
||||
inlinedDataStream: ReadableStream<Uint8Array>;
|
||||
getServerInsertedHTML: () => Promise<string>;
|
||||
getServerInsertedMetadata: () => Promise<string>;
|
||||
};
|
||||
export declare function continueStaticPrerender(prerenderStream: ReadableStream<Uint8Array>, { inlinedDataStream, getServerInsertedHTML, getServerInsertedMetadata, }: ContinueStaticPrerenderOptions): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
||||
type ContinueResumeOptions = {
|
||||
inlinedDataStream: ReadableStream<Uint8Array>;
|
||||
getServerInsertedHTML: () => Promise<string>;
|
||||
getServerInsertedMetadata: () => Promise<string>;
|
||||
};
|
||||
export declare function continueDynamicHTMLResume(renderStream: ReadableStream<Uint8Array>, { inlinedDataStream, getServerInsertedHTML, getServerInsertedMetadata, }: ContinueResumeOptions): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
||||
export declare function createDocumentClosingStream(): ReadableStream<Uint8Array>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user