import { TurboModuleRegistry, type TurboModule } from 'react-native'; export interface Spec extends TurboModule { addListener(eventType: string): void; removeListeners(count: number): void; init(appId: string, appKey: string): void; getSDKVersionName(): Promise; isCnSDK(): Promise; setExcludeMyOfferPkgList(packages: string[]): void; initCustomMap(customMapJson: string): void; setPlacementCustomMap(placementId: string, customMapJson: string): void; setGDPRLevel(level: number): void; getGDPRLevel(): Promise; getUserLocation(): Promise; showGDPRAuth(): void; showGDPRConsentDialog(appId: string): Promise; showGDPRConsentSecondDialog(appId: string): Promise; setUMPTestDeviceId(deviceId: string): void; setLogDebug(isDebug: boolean): void; deniedUploadDeviceInfo(keys: string[]): void; rewardedLoadAd(placementId: string, settingsJson: string): void; rewardedShowAd(placementId: string): void; rewardedShowAdInScenario(placementId: string, scenario: string): void; rewardedHasAdReady(placementId: string): Promise; rewardedCheckAdStatus(placementId: string): Promise; interstitialLoadAd(placementId: string, settingsJson: string): void; interstitialShowAd(placementId: string): void; interstitialShowAdInScenario(placementId: string, scenario: string): void; interstitialHasAdReady(placementId: string): Promise; interstitialCheckAdStatus(placementId: string): Promise; bannerLoadAd(placementId: string, settingsJson: string): void; bannerShowAdInRectangle(placementId: string, rectJson: string): void; bannerShowAdInPosition(placementId: string, position: string): void; bannerShowAdInRectangleAndScenario( placementId: string, rectJson: string, scenario: string ): void; bannerShowAdInPositionAndScenario( placementId: string, position: string, scenario: string ): void; bannerHideAd(placementId: string): void; bannerReShowAd(placementId: string): void; bannerRemoveAd(placementId: string): void; bannerHasAdReady(placementId: string): Promise; bannerCheckAdStatus(placementId: string): Promise; splashLoadAd(placementId: string, settingsJson: string): void; splashShowAd(placementId: string): void; splashShowAdInScenario(placementId: string, scenario: string): void; splashHasAdReady(placementId: string): Promise; splashCheckAdStatus(placementId: string): Promise; nativeLoadAd(placementId: string, settingsJson: string): void; nativeShowAd(placementId: string, viewTagsJson: string): void; nativeShowAdInScenario( placementId: string, viewTagsJson: string, scenario: string ): void; nativeHasAdReady(placementId: string): Promise; nativeCheckAdStatus(placementId: string): Promise; nativeGetAdMaterial(placementId: string): Promise; nativeRemoveAd(placementId: string): void; } export default TurboModuleRegistry.getEnforcing('Topon');