UNPKG

@chordcommerce/analytics

Version:

Chord Commerce event tracking

19 lines (18 loc) 645 B
import type { ConsentConfiguration } from '../../types/index.js'; declare global { interface Window { ketch?: (action: string, eventName: string, handler: () => void) => undefined; ketchConsent?: KetchConsentCategories; } } interface KetchConsentCategories { [key: string]: boolean; } export declare const ketchConsentAdapter: () => { getCurrentConsent: () => ConsentConfiguration; handleConsentUpdates: (updateCdpConsent: (consent: ConsentConfiguration) => void) => void; userCanBeTracked: () => boolean; getCategories: () => Record<string, boolean>; isConsentReady: () => boolean; }; export {};