// VENDORED from @dynamic-labs-sdk/client (src/turboModules/NativeReactNativeManifest.ts). // See NativeDynamicWebView.ts in this directory for why the spec is carried here. // Keep byte-identical to the source spec in @dynamic-labs-sdk/client. // // Consumed by React Native codegen to emit the Android/iOS native interfaces. // The filename must stay prefixed with `Native` — codegen's parser discovers // spec files by that convention and will silently skip anything else. The // `interface` keyword, the `default export`, and the locally-declared // `ReactNativeManifest` type are hard requirements of the codegen parser: // codegen parses this file statically and does NOT follow imported type // aliases, so the return shape must be defined inline here. import { type TurboModule, TurboModuleRegistry } from 'react-native'; export type ReactNativeManifest = { sdkVersion: string; }; export interface Spec extends TurboModule { getManifest(): ReactNativeManifest; } // eslint-disable-next-line import/no-default-export -- codegen requires a default export of the TurboModule spec export default TurboModuleRegistry.get('DynamicClientManifest');