/** * @module * This module enables JSX to supports streaming Response. */ import type { HtmlEscapedString } from '../utils/html'; import { JSXNode } from './base'; import type { FC, PropsWithChildren, Context as JSXContext } from './'; /** * Used to specify nonce for scripts generated by `Suspense` and `ErrorBoundary`. * * @example * ```tsx * * Loading...

}> * *
*
* ``` */ export declare const StreamingContext: JSXContext<{ scriptNonce: string; } | null>; /** * @experimental * `Suspense` is an experimental feature. * The API might be changed. */ export declare const Suspense: FC>; /** * @experimental * `renderToReadableStream()` is an experimental feature. * The API might be changed. */ export declare const renderToReadableStream: (content: HtmlEscapedString | JSXNode | Promise, onError?: (e: unknown) => string | void) => ReadableStream;