/** * NativeRoktWidget.ts * * Licensed under the Rokt Software Development Kit (SDK) Terms of Use * Version 2.0 (the "License"); * * You may not use this file except in compliance with the License. * * You may obtain a copy of the License at https://rokt.com/sdk-license-2-0/ */ import type { TurboModule } from "react-native/Libraries/TurboModule/RCTExport"; type ColorMode = string; type CacheConfig = { readonly cacheDurationInSeconds?: number; readonly cacheAttributes?: { [key: string]: string; }; }; type RoktConfigType = { readonly colorMode?: ColorMode; readonly cacheConfig?: CacheConfig; }; export interface Spec extends TurboModule { initialize(roktTagId: string, appVersion: string): void; initializeWithFontFiles(roktTagId: string, appVersion: string, fontsMap: { [key: string]: string; }): void; selectPlacements(identifier: string, attributes: { [key: string]: string; }, placeholders: { [key: string]: number | null; }): void; selectPlacementsWithConfig(identifier: string, attributes: { [key: string]: string; }, placeholders: { [key: string]: number | null; }, roktConfig: RoktConfigType): void; selectShoppableAds(identifier: string, attributes: { [key: string]: string; }): void; selectShoppableAdsWithConfig(identifier: string, attributes: { [key: string]: string; }, roktConfig: RoktConfigType): void; purchaseFinalized(placementId: string, catalogItemId: string, success: boolean): void; setEnvironmentToStage(): void; setEnvironmentToProd(): void; setSessionId(sessionId: string): void; getSessionId(): string | null; } declare const _default: Spec; export default _default;