@chordcommerce/analytics
Version:
Chord Commerce event tracking
11 lines (10 loc) • 554 B
TypeScript
import type { ChordAnalyticsOptions, ConsentConfiguration } from '../../types/index.js';
export declare const onetrustConsentAdapter: (options: ChordAnalyticsOptions) => {
getCurrentConsent: () => ConsentConfiguration;
handleConsentUpdates: (updateCdpConsent: (consent: ConsentConfiguration) => void) => void;
userCanBeTracked: () => boolean;
getCategories: () => Record<string, boolean>;
isConsentReady: () => boolean;
getConsentModel: () => 'opt-in' | 'opt-out';
getApi: () => import("./onetrust-api.js").OneTrustGlobal;
};