This commit is contained in:
2026-07-31 23:21:51 +02:00
parent f6b4b36df8
commit f14f2cfd98
294 changed files with 5880 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { ConsentState } from './categories.js';
/**
* Consent persistence in a cookie. Stored with a version so we can invalidate
* old consents when the policy changes, and a timestamp (GDPR: consent must be
* dated). Readable both client-side (banner) and server-side (script gating).
*/
export declare const CONSENT_COOKIE = "cookie-consent";
export declare const CONSENT_VERSION = 1;
export declare const CONSENT_MAX_AGE: number;
export declare function serializeConsent(state: ConsentState): string;
export declare function parseConsent(raw: string | undefined): ConsentState | null;