/** * Default `LoadRn` implementation: lazily resolves the host's * `react-native` module via `require`. Returns `null` when the * module is absent (Node test runner without an RN install). * * The helper is intentionally NOT module-scoped on its result so * tests that mock `require('react-native')` per-test see the fresh * mock each time `attach()` runs. This mirrors the safe-fallback * pattern in `platformDefaults.ts`. */ import type { RnApi } from './types/rn'; /** * Resolve `require('react-native')` and unwrap the CJS / ESM-interop * shapes. Returns `undefined` on resolution failure (module absent / * broken shim). * * Excluded from coverage because the success path requires the * native module to be present on disk, which is not the case in the * Jest sandbox. */ declare function defaultLoadRn(): RnApi | undefined; export { defaultLoadRn };