Files
2026-08-03 12:24:28 +02:00

12 lines
598 B
TypeScript

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;