19b26454eSBartosz Kaszubowskitype ExpoObject = { 21bed2683STomasz Sapeta modules: undefined | { 31bed2683STomasz Sapeta [key: string]: any; 41bed2683STomasz Sapeta }; 5*6e021b28SWojciech Dróżdż uuidv4: () => string; 61bed2683STomasz Sapeta}; 7d46e3a1aSTomasz Sapetadeclare global { 81bed2683STomasz Sapeta var expo: ExpoObject | undefined; 91bed2683STomasz Sapeta /** 101bed2683STomasz Sapeta * @deprecated `global.ExpoModules` is deprecated, use `global.expo.modules` instead. 111bed2683STomasz Sapeta */ 12d46e3a1aSTomasz Sapeta var ExpoModules: undefined | { 13d46e3a1aSTomasz Sapeta [key: string]: any; 14d46e3a1aSTomasz Sapeta }; 15d46e3a1aSTomasz Sapeta} 16d46e3a1aSTomasz Sapeta/** 17d46e3a1aSTomasz Sapeta * Imports the native module registered with given name. In the first place it tries to load 18d46e3a1aSTomasz Sapeta * the module installed through the JSI host object and then falls back to the bridge proxy module. 19d46e3a1aSTomasz Sapeta * Notice that the modules loaded from the proxy may not support some features like synchronous functions. 20d46e3a1aSTomasz Sapeta * 21d46e3a1aSTomasz Sapeta * @param moduleName Name of the requested native module. 22d46e3a1aSTomasz Sapeta * @returns Object representing the native module. 23d46e3a1aSTomasz Sapeta * @throws Error when there is no native module with given name. 24d46e3a1aSTomasz Sapeta */ 25d46e3a1aSTomasz Sapetaexport declare function requireNativeModule<ModuleType = any>(moduleName: string): ModuleType; 265585864bSTomasz Sapeta/** 275585864bSTomasz Sapeta * Imports the native module registered with the given name. The same as `requireNativeModule`, 285585864bSTomasz Sapeta * but returns `null` when the module cannot be found instead of throwing an error. 295585864bSTomasz Sapeta * 305585864bSTomasz Sapeta * @param moduleName Name of the requested native module. 315585864bSTomasz Sapeta * @returns Object representing the native module or `null` when it cannot be found. 325585864bSTomasz Sapeta */ 335585864bSTomasz Sapetaexport declare function requireOptionalNativeModule<ModuleType = any>(moduleName: string): ModuleType | null; 341bed2683STomasz Sapetaexport {}; 35d46e3a1aSTomasz Sapeta//# sourceMappingURL=requireNativeModule.d.ts.map