import type { TurboModule } from 'react-native'; import { TurboModuleRegistry } from 'react-native'; export interface Spec extends TurboModule { setCustomerAttribute(key: string, value: string): void; getCustomerAttribute(key: string): Promise; clearCustomerAttribute(key: string): void; clearAllCustomerAttributes(): void; setCustomerDataPlatformId(platformId: string): void; clearCustomerDataPlatformId(): void; setAnonymousMode(anonymousMode: boolean): void; inAnonymousMode(): Promise; journeyState(): Promise<{ formerSubscriber: boolean; inGracePeriod: boolean; inTrialPeriod: boolean; inIntroOfferPeriod: boolean; isCancelled: boolean; inPause: boolean; inAccountHold: boolean; }>; isLoggedIn(): Promise; loggedInId(): Promise; deviceId(): Promise; login(customerId: string): void; logout(): void; registerJourneyStateHandler(): void; registerAccountStateHandler(): void; } export default TurboModuleRegistry.getEnforcing('RNNamiCustomerManager');