11 lines
547 B
TypeScript
11 lines
547 B
TypeScript
/**
|
|
* Cookie consent categories (GDPR). 'necessary' is always granted and cannot be
|
|
* disabled. The rest default to false until the user opts in.
|
|
*/
|
|
export declare const CONSENT_CATEGORIES: readonly ["necessary", "functional", "analytics", "marketing"];
|
|
export type ConsentCategory = (typeof CONSENT_CATEGORIES)[number];
|
|
export type ConsentState = Record<ConsentCategory, boolean>;
|
|
export declare const DEFAULT_CONSENT: ConsentState;
|
|
export declare const ACCEPT_ALL_CONSENT: ConsentState;
|
|
export declare const REJECT_ALL_CONSENT: ConsentState;
|