UNPKG

@trustarc/react-cookie-consent-manager

Version:

React components to integrate TrustArc Cookie Consent Manager into React Frameworks

33 lines (32 loc) 1.27 kB
import { TrustArcBannerID } from "./enum/trustarc-banner.enum.js"; import { TrustArcVersion } from "./enum/trustarc-version.enum.js"; import { TrustArcOptions } from "./interface/trustarc-options.interface.js"; export declare class TrustArcHelper { static generateQueryString(params: QueryStringType[]): string; static logDebug(debug?: boolean, ...args: unknown[]): void; static repopulateDiv(options: TrustArcOptions, bannerId: TrustArcBannerID, divId?: string): void; static getScriptSource(options: TrustArcOptions, CMPID: string): string; static setDefaultValues(options: TrustArcOptions): { cookiePreferencesContainer?: string; showCookiePreferencesAsButton?: boolean; irmContainer?: string; js?: string; noticeType?: string; countryCodeorIP?: string; state?: string; language?: string; pcookie?: boolean; behavior?: string; privacyPolicyLink?: string; ccmVersion?: TrustArcVersion; pn?: "1" | "2" | string; onclose?: boolean; ostype?: boolean; fade?: number; px?: number; cookiePolicyLink?: string; privacypolicylink?: string; loadScriptAsync?: boolean; debug?: boolean; }; }