import type { BannerTexts } from "./i18n"; export type TrackerType = "COOKIE" | "LOCAL_STORAGE" | "SESSION_STORAGE" | "INDEXED_DB" | "CACHE_STORAGE"; export interface CookieItem { name: string; tracker_type: TrackerType; max_age_seconds: number | null; description: string; } export interface Category { name: string; slug: string; description: string; kind: string; cookies: CookieItem[]; gcm_consent_types: string[]; posthog_consent: boolean; } export type Regulation = "GDPR" | "UK_GDPR" | "FADP" | "CCPA" | "PIPEDA" | "LGPD" | "LFPDPPP" | "POPIA" | "PDPA" | "PIPL" | "PIPA" | "APPI" | "DPDP" | "PDPL"; export interface BannerConfig { banner_id: string; version: number; language: string; default_language: string; privacy_policy_url?: string; cookie_policy_url: string; consent_expiry_days: number; consent_mode: "OPT_IN" | "OPT_OUT"; regulation: Regulation | null; show_branding: boolean; categories: Category[]; texts: BannerTexts; } export type ConsentAction = "ACCEPT_ALL" | "REJECT_ALL" | "CUSTOMIZE" | "GPC"; export interface VisitorConsent { visitor_id: string; version: number; action: ConsentAction; consent_data: Record; created_at: string; } export interface ConsentRecord { id: string; visitor_id: string; action: string; created_at: string; } export interface CookieBannerClientOptions { bannerId: string; baseUrl: string; lang?: string; } //# sourceMappingURL=types.d.ts.map