@chordcommerce/analytics
Version:
Chord Commerce event tracking
20 lines (19 loc) • 616 B
TypeScript
import type { ConsentConfiguration } from '../../types/index.js';
declare global {
interface Window {
segmentConsent?: SegmentConsentCategories;
}
}
interface SegmentConsentCategories {
[key: string]: {
[key: string]: boolean;
};
}
export declare const segmentConsentAdapter: () => {
getCurrentConsent: () => Promise<ConsentConfiguration>;
handleConsentUpdates: (updateCdpConsent: (consent: ConsentConfiguration) => void) => void;
userCanBeTracked: () => Promise<boolean>;
getCategories: () => Record<string, boolean>;
isConsentReady: () => boolean;
};
export {};