UNPKG

gdpr-consent

Version:

GDPR banner to comply with the European cookie law. Inspired by tarteaucitronjs.

13 lines (12 loc) 1.11 kB
import { GDPRConsentParameters, GDPRConsentState } from "../interfaces/index.js"; export declare function closeAlert(): void; export declare function openAlert(): void; export declare function closePanel(gdprConsentState: GDPRConsentState): void; export declare function openPanel(gdprConsentState: GDPRConsentState): void; export declare function respondEffect(key: string, choice: boolean | string, gdprConsentState: GDPRConsentState): void; export declare function respondAll(status: boolean, gdprConsentState: GDPRConsentState, gdprConsentParams: GDPRConsentParameters): void; export declare function respond(el: HTMLElement, gdprConsentState: GDPRConsentState, gdprConsentParams: GDPRConsentParameters, event: MouseEvent): void; export declare function activate(id: string, gdprConsentState: GDPRConsentState, gdprConsentParams: GDPRConsentParameters): void; export declare function isActivated(id: string, gdprConsentState: GDPRConsentState): boolean; export declare function toggle(id: string, closeClass: string): void; export declare function order(id: string, gdprConsentState: GDPRConsentState): void;