export let useRequireProfilerDevTools: typeof import('./src/react-native/useRequireProfilerDevTools').useRequireProfilerDevTools; const isWeb = typeof window !== 'undefined' && window.navigator.product !== 'ReactNative'; // Neither Lynx runtime has a `window`, so `typeof window` alone reported // every Lynx app as a server and installed the no-op stub below. `lynx` is // a free binding in module scope, not a property of `globalThis`. Kept // inline rather than imported so this stays a foldable expression and the // `require`s below can still be dropped from production bundles. declare const lynx: unknown; const isDev = process.env.NODE_ENV !== 'production'; const isServer = typeof window === 'undefined' && typeof lynx === 'undefined'; if (isDev && !isWeb && !isServer) { useRequireProfilerDevTools = require('./src/react-native/useRequireProfilerDevTools').useRequireProfilerDevTools; } else { useRequireProfilerDevTools = () => null; }