UNPKG

@sourcepoint/react-native-cmp

Version:
25 lines 1.38 kB
import type { Spec, SPCampaigns, SPUserData, LoadMessageParams, SPAction, SPBuildOptions, GDPRConsent } from './NativeReactNativeCmp'; import type { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes'; export * from './NativeReactNativeCmp'; export default class SPConsentManager implements Spec { build(accountId: number, propertyId: number, propertyName: string, campaigns: SPCampaigns, options?: SPBuildOptions): void; getUserData(): Promise<SPUserData>; loadMessage(params?: LoadMessageParams): void; clearLocalData(): void; loadGDPRPrivacyManager(pmId: string): void; loadUSNatPrivacyManager(pmId: string): void; loadGlobalCmpPrivacyManager(pmId: string): void; loadPreferenceCenter(id: string): void; dismissMessage(): void; postCustomConsentGDPR(vendors: string[], categories: string[], legIntCategories: string[], callback: (consent: GDPRConsent) => void): void; postDeleteCustomConsentGDPR(vendors: string[], categories: string[], legIntCategories: string[], callback: (consent: GDPRConsent) => void): void; onAction: EventEmitter<SPAction>; onSPUIReady: EventEmitter<void>; onSPUIFinished: EventEmitter<void>; onFinished: EventEmitter<void>; onMessageInactivityTimeout: EventEmitter<void>; onError: EventEmitter<{ description: string; }>; } //# sourceMappingURL=index.d.ts.map