import { Component } from '../component'; import { ContextManager } from '../context'; import { Observable } from '../observable'; export interface DefaultCookieConsentConstructorProps { /** * Show the cookie consent dialog when the experience starts, rather than when the component is initialized. * @zui * @zdefault false */ waitForStart: boolean; /** * Only show the cookie consent dialog if the experience contains analytics components that indicate they use cookies. * @zui * @zdefault true */ onlyShowIfVendors: boolean; /** * Previews how the consent dialog looks at design time. * @zui * @zdefault false */ preview: boolean; } /** * The CookieConsent component is responsible for displaying a cookie consent banner to the user. * * This banner informs the user about the use of cookies on the website and asks for their consent. * The component handles the logic for displaying the banner, receiving the user's consent, and storing this consent. * It also provides methods to check if the user has already given their consent. * @zcomponent * @zgroup Cookie Consent * @zicon cookie */ export declare class DefaultCookieConsent extends Component { constructorProps: DefaultCookieConsentConstructorProps; /** * @zprop * @zgroup Consent Screen * @zgrouppriority 20 * @zdefault "This website uses cookies to store information on your computer." */ readonly title: Observable; /** * @zprop * @zgroup Consent Screen * @zgrouppriority 20 * @zdefault "Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used." */ readonly description: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Privacy Policy" */ readonly privacyPolicyText: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "" */ readonly privacyPolicyURL: Observable; /** * @zprop * @zgroup Consent Screen * @zgrouppriority 20 * @zdefault "I Accept Cookies" */ readonly acceptButton: Observable; /** * @zprop * @zgroup Consent Screen * @zgrouppriority 20 * @zdefault "Settings" */ readonly settingsButton: Observable; /** * @zprop * @zgroup Consent Screen * @zgrouppriority 20 * @zdefault "Save" */ readonly saveButton: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Essential" */ readonly essentialTitle: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Cookies that are necessary to provide the service." */ readonly essentialDescription: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Functional" */ readonly functionalTitle: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Cookies that provide you with useful functionality, such as saving your preferences." */ readonly functionalDescription: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Performance" */ readonly performanceTitle: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Cookies that help us measure and understand how the site is being used." */ readonly performanceDescription: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Marketing" */ readonly marketingTitle: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Cookies that help us market our site and services." */ readonly marketingDescription: Observable; /** * @zprop * @zgroup Settings * @zgrouppriority 10 * @zdefault "Required" */ readonly required: Observable; private _dom; private _functional; private _performance; private _marketing; /** * Creates an instance of DefaultCookieConsent. * @param contextManager - The current ContextManager * @param constructorProps - The properties of the component */ constructor(contextManager: ContextManager, constructorProps: DefaultCookieConsentConstructorProps); private _loadDOM; private _save; private _createEntry; private _getConsentStatus; private _setConsentStatus; /** * Shows the cookie consent dialog. * @param isSettings - Determines if the settings screen should be shown * @param force - Forces the dialog to be shown, regardless of the current consent status. Defaults to false. */ show(isSettings: boolean, force?: boolean): void; hide(): void; acceptAll(): void; dispose(): never; }