@identitysquare/cookiechimp-segment-wrapper
Version:
CookieChimp wrapper for Segment
20 lines (19 loc) • 559 B
TypeScript
interface CookieChimpPreferences {
acceptedCategories: string[];
rejectedCategories: string[];
}
interface CookieChimp {
visitorNeedsConsent: boolean;
getUserPreferences: () => CookieChimpPreferences;
validConsent: () => boolean;
}
declare global {
interface Window {
CookieChimp: CookieChimp;
}
}
interface CookieChimpOptions {
alwaysLoadSegment?: boolean;
}
export declare const withCookieChimpCMP: (analytics: any, options?: CookieChimpOptions) => import("@segment/analytics-consent-tools").AnyAnalytics;
export {};