import { a as CreateFromReadableStreamEdgeOptions, d as ServerTemporaryReferenceSet, l as RenderToReadableStreamOptions, o as DecodeReplyFunction, r as ClientTemporaryReferenceSet, s as EncodeReplyFunction } from "../index-D2a5dlVU.js"; import { loadServerAction, setRequireModule } from "../core/rsc.js"; import { ReactFormState } from "react-dom/client"; //#region src/react/rsc.d.ts declare function renderToReadableStream(data: T, options?: RenderToReadableStreamOptions, extraOptions?: { /** * @internal */ onClientReference?: (metadata: { id: string; name: string; }) => void; }): ReadableStream; declare function createFromReadableStream(stream: ReadableStream, options?: CreateFromReadableStreamEdgeOptions): Promise; declare function registerClientReference(proxy: T, id: string, name: string): T; declare const registerServerReference: (ref: T, id: string, name: string) => T; declare const decodeReply: DecodeReplyFunction; declare function decodeAction(body: FormData): Promise<() => Promise>; declare function decodeFormState(actionResult: unknown, body: FormData): Promise; declare const createTemporaryReferenceSet: () => ServerTemporaryReferenceSet; declare const encodeReply: EncodeReplyFunction; declare const createClientTemporaryReferenceSet: () => ClientTemporaryReferenceSet; //#endregion export { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, loadServerAction, registerClientReference, registerServerReference, renderToReadableStream, setRequireModule };