import type { Properties } from 'csstype'; declare interface Animation_2 { duration?: Properties['animationDuration']; delay?: Properties['animationDelay']; } declare interface Btn { fontSize?: Properties['fontSize']; fontWeight?: Properties['fontWeight']; margin?: Properties['margin']; padding?: Properties['padding']; radius?: Properties['borderRadius']; } declare interface BtnAccept { background?: Properties['background']; border?: Properties['border']; textColor?: Properties['color']; backgroundHover?: Properties['background']; } declare interface BtnClose { color?: Properties['color']; colorHover?: Properties['color']; } declare interface BtnDismiss { background?: Properties['background']; border?: Properties['border']; fontSize?: Properties['fontSize']; fontWeight?: Properties['fontWeight']; padding?: Properties['padding']; textColor?: Properties['color']; radius?: Properties['borderRadius']; } declare interface BtnInfo { background?: Properties['background']; border?: Properties['border']; textColor?: Properties['color']; backgroundHover?: Properties['background']; } declare interface BtnReject { background?: Properties['background']; border?: Properties['border']; textColor?: Properties['color']; backgroundHover?: Properties['background']; } declare interface BtnSettings { background?: Properties['background']; border?: Properties['border']; textColor?: Properties['color']; backgroundHover?: Properties['background']; } declare interface BtnSettingsAccept { background?: Properties['background']; border?: Properties['border']; textColor?: Properties['color']; backgroundHover?: Properties['background']; } declare interface BtnSettingsSelect { background?: Properties['background']; border?: Properties['border']; textColor?: Properties['color']; backgroundHover?: Properties['background']; } declare type ButtonDismissPositionType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; declare interface Buttons { padding?: Properties['padding']; align?: Properties['textAlign']; } declare type ButtonType = 'dismiss' | 'accept' | 'reject' | 'info' | 'settings'; declare interface Callback { first_load?: (params: CookiesStatus) => void; accept?: (params: CookiesStatus) => void; reject?: (params: CookiesStatus) => void; load?: (params: CookiesStatus) => void; } declare interface Content { /** * Specifies the title of the cookies message. */ title?: string; /** * Specifies the text of the cookies message. */ message?: string; /** * Specifies the text for the **information** button. By clicking this button, the information window will be open. */ info?: string; /** * Specifies the text for the privacy policy link. If not specified, it will not be shown. */ policy?: string; /** * Specifies the link to the privacy policy. If not specified, the text will not be shown. */ policyLink?: string; /** * Specifies the text for the dismiss button. This button is shown when the cookies message is accepted or rejected. * By clicking this button, the cookies message will be shown. */ btnDismiss?: string; /** * Specifies the text for the accept button. By clicking this button, all the cookies will be accepted. */ btnAccept?: string; /** * Specifies the text for the reject button. By clicking this button, all the cookies will be rejected. */ btnReject?: string; /** * Specifies the text for the **information** button. By clicking this button, the information window will be open. */ btnInfo?: string; /** * Specifies the text for the settings button. By clicking this button, the settings window will be open to select custom cookies. */ btnSettings?: string; /** * Specifies the alignment of the content (title and message, not buttons). */ align?: string; /** * Specifies the text that will be shown in the header of the settings window. It is possible to specify HTML code. */ settingsHeader?: string; /** * Specifies the text that will be shown in the footer of the settings window. It is possible to specify HTML code. */ settingsFooter?: string; /** * Specifies the text for the **select all** button placed in the settings window. */ btnSettingsSelectAll?: string; /** * Specifies the text for the **unselect all** button placed in the settings window. */ btnSettingsUnselectAll?: string; /** * Specifies the text for the accept selection button placed in the settings window. */ btnSettingsAccept?: string; } export declare const contrastTheme: Theme; /** * Define an interface for custom cookies in the cookies settings window. */ declare interface Cookie { /** * Name by which the browser will identify the cookie. * A name without spaces or special characters is recommended. */ name: string; /** * Title or long name with which the cookie will be displayed in its description section. */ title?: string; /** * Text that will be shown in the settings window to describe the cookie. * It is possible to specify HTML code. */ description?: string; /** * Initial state of the cookie checkbox. */ checked?: boolean; /** * Allows to interact or not with the checkbox. */ disabled?: boolean; /** * Only applicable to a cookie associated with Google Analytics. * Determines whether data collection is activated before the user has accepted or rejected cookies. */ onLoad?: boolean; /** * Only applicable to a cookie associated with Google Analytics. * Google Analytics code for global site tag (gtag.js). */ code?: string; /** * Function that will be executed when the cookie is accepted or rejected. * The function will receive an object with the following properties: * - lifecycle: 'first-load' | 'load' | 'accept' | 'reject' * - cookie: Cookie * - status: boolean * - path: string * @param arg */ manageFunction?: (arg: CookieLifecycleParams) => void | Promise; /** * Define this property if the cookie is a parent of other cookies. * So when the parent cookie is accepted, all its children will be accepted too. * If the parent cookie is rejected, all its children will be rejected too. */ cookies?: Array>; } declare interface CookieLifecycleParams { lifecycle: LifecycleType; cookie: Cookie; status?: boolean; path?: string; } export declare class CookiesConsent { #private; private params; constructor(params: CookiesConsentParams); getStatus(): boolean; getConfig(): CookiesConsentParams; showMessage(): void; removeCookies(): void; toggleSettings(): void; } declare interface CookiesConsentParams { expirationDays: number; path?: string; sameSite?: 'strict' | 'lax' | 'none'; position?: PositionType; btnDismissPosition?: ButtonDismissPositionType; buttons?: ButtonType[]; ignorePages?: string[]; hideDescription?: boolean; mainWindowSettings?: boolean; animation?: boolean; content: Content; cookies?: Cookie[]; callback?: Callback; theme?: Theme; } /** * Define a type to represent the status of custom cookies. */ declare interface CookiesStatus { /** * Status of each custom cookie, identified by their respective names. * The values are boolean flags indicating whether the cookie is accepted or rejected. */ [key: string]: { status: boolean; parent?: Cookie; } & Cookie; } export declare const darkTheme: Theme; declare type LifecycleType = 'first-load' | 'load' | 'accept' | 'reject'; export declare function manageGoogleAnalytics({ lifecycle, cookie, status, path, }: CookieLifecycleParams): void; export declare function manageGoogleTagManager({ lifecycle, cookie, status, path, }: ManageGoogleTagManagerParams): void; declare interface ManageGoogleTagManagerParams { lifecycle: LifecycleType; cookie: Cookie; status?: boolean; path?: string; } declare interface Message { padding?: Properties['padding']; lineHeight?: Properties['lineHeight']; fontSize?: Properties['fontSize']; fontWeight?: Properties['fontWeight']; textColor?: Properties['color']; linkColor?: Properties['color']; linkDecoration?: Properties['textDecoration']; linkFontWeight?: Properties['fontWeight']; } declare interface Popup { background?: Properties['background']; width?: Properties['width']; textColor?: Properties['color']; radius?: Properties['borderRadius']; } declare type PositionType = 'top' | 'top-left' | 'top-right' | 'top-center' | 'bottom' | 'bottom-left' | 'bottom-right' | 'bottom-center'; declare interface Settings { marginTop?: Properties['marginTop']; marginBottom?: Properties['marginBottom']; fontSize?: Properties['fontSize']; separatorColor?: Properties['color']; titleSize?: Properties['fontSize']; titleWeight?: Properties['fontWeight']; } export declare const smoothTheme: Theme; declare interface Theme { fontFamily?: Properties['fontFamily']; window?: Window_2; title?: Title; message?: Message; settings?: Settings; buttons?: Buttons; btn?: Btn; btnAccept?: BtnAccept; btnReject?: BtnReject; btnInfo?: BtnInfo; btnSettings?: BtnSettings; btnSettingsSelect?: BtnSettingsSelect; btnSettingsAccept?: BtnSettingsAccept; btnDismiss?: BtnDismiss; btnClose?: BtnClose; popup?: Popup; animation?: Animation_2; } declare interface Title { fontSize?: Properties['fontSize']; fontWeight?: Properties['fontWeight']; marginBottom?: Properties['marginBottom']; padding?: Properties['padding']; textColor?: Properties['color']; } declare interface Window_2 { background?: Properties['background']; border?: Properties['border']; borderRadius?: Properties['borderRadius']; marginBottom?: Properties['marginBottom']; marginLeft?: Properties['marginLeft']; marginRight?: Properties['marginRight']; marginTop?: Properties['marginTop']; padding?: Properties['padding']; width?: Properties['width']; } export { }