UNPKG

c15t

Version:

Developer-first CMP for JavaScript: cookie banner, consent manager, preferences centre. GDPR ready with minimal setup and rich customization

77 lines 2.32 kB
/** * @packageDocumentation * Central export point for all consent management types and interfaces. * This module aggregates and re-exports all type definitions needed for implementing * GDPR-compliant consent management. */ export type { Callback, Callbacks } from './callbacks'; /** * @module * Compliance and Privacy Types * * @remarks * Exports types related to privacy compliance and consent management: * - Region-specific compliance settings * - Consent state tracking * - Privacy preferences * - Namespace configuration * * @example * Import compliance-related types: * ```typescript * import type { * ComplianceRegion, * ComplianceSettings, * } from 'c15t/types'; * * const euSettings: ComplianceSettings = { * enabled: true, * appliesGlobally: false, * applies: true * }; * * const region: ComplianceRegion = 'gdpr'; * ``` */ export type { ComplianceRegion, ComplianceSettings, ConsentBannerResponse, ConsentState, HasConsentedProps, JurisdictionInfo, LocationInfo, NamespaceProps, PrivacySettings, } from './compliance'; /** * @module * GDPR Consent Types * * @remarks * Exports types and constants for GDPR-specific consent management: * - Consent category definitions * - Consent type configurations * - Predefined consent settings * * @example * Import and use GDPR-related types: * ```typescript * import { * type AllConsentNames, * type ConsentType, * consentTypes * } from 'c15t/types'; * * function isOptionalConsent(type: AllConsentNames): boolean { * const config = consentTypes.find(c => c.name === type); * return config ? !config.disabled && !config.defaultValue : false; * } * ``` */ export { type AllConsentNames, type ConsentType, consentTypes } from './gdpr'; /** * @module * Translation Types * * @remarks * Exports types for translation configuration and translations: * - Translation configuration * - Translation types * - Cookie banner translations * - Consent manager dialog translations * - Consent manager widget translations */ export type { CommonTranslations, ConsentManagerDialogTranslations, ConsentTypesTranslations, ConsentTypeTranslations, CookieBannerTranslations, TranslationConfig, Translations, } from '@c15t/translations'; export * from './compliance'; //# sourceMappingURL=index.d.ts.map