//#region src/runtime/vendor/react-flight-client/ReactFlightClientConfig.d.ts /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * Vendored from: https://github.com/facebook/react * Original file: packages/react-client/src/ReactFlightClientConfig.js (shim) * Reference impl: packages/react-server-dom-webpack/src/client/ReactFlightClientConfigBundlerWebpack.js * Modifications: Adapted for rari's client component registry */ interface ClientReferenceMetadata { id: string; chunks: Array; name: string; } interface ClientReference { specifier: string; name: string; } type ServerConsumerModuleMap = Record; interface StringDecoder { decode: (chunk: Uint8Array, options?: { stream?: boolean; }) => string; } declare function resolveClientReference(metadata: ClientReferenceMetadata): ClientReference; declare function preloadModule(moduleReference: ClientReference): null | Promise; declare function requireModule(moduleReference: ClientReference): T; declare function readPartialStringChunk(decoder: StringDecoder, buffer: Uint8Array): string; declare function readFinalStringChunk(decoder: StringDecoder, buffer: Uint8Array): string; declare function createStringDecoder(): StringDecoder; //#endregion export { createStringDecoder as a, readPartialStringChunk as c, StringDecoder as i, requireModule as l, ClientReferenceMetadata as n, preloadModule as o, ServerConsumerModuleMap as r, readFinalStringChunk as s, ClientReference as t, resolveClientReference as u };