import type {TConfig} from './types' type TPluggerJSIModule = { setUser: (userId: String) => void setGuest: (guestId: String) => void setLocation: (latitude: Number, longitude: Number) => void isPluggerInitialized: () => boolean initializePluggerInSync: (config: TConfig) => boolean } const getNameSpace = () => { //@ts-ignore return (global.PluggerJSIModule ?? {}) as unknown as TPluggerJSIModule } export const PluggerJSIModule = getNameSpace() export const getJSIModule = () => { return getNameSpace() }