import { cmpClient } from '../libraries/cmp/cmpClient.js'; import { type CMConfig } from '../libraries/consentManagement/cmUtils.js'; export declare let consentConfig: any; type RelevantCMPData = { applicableSections: number[]; gppString: string; parsedSections: Record; }; type CMPData = RelevantCMPData & { [key: string]: unknown; }; export type GPPConsentData = RelevantCMPData & { gppData: CMPData; }; export interface GPPConfig { } export type GPPCMConfig = GPPConfig & CMConfig; declare module '../src/consentHandler' { interface ConsentData { [CONSENT_GPP]: GPPConsentData; } interface ConsentManagementConfig { [CONSENT_GPP]?: GPPCMConfig; } } export declare class GPPClient { #private; apiVersion: string; cmp: any; static INST: any; static get(mkCmp?: typeof cmpClient): any; initialized: boolean; constructor(cmp: any); /** * initialize this client - update consent data if already available, * and set up event listeners to also update on CMP changes * * @param pingData * @returns {Promise<{}>} a promise to GPP consent data */ init(pingData: any): Promise; refresh(): any; /** * Retrieve and store GPP consent data. * * @param pingData * @returns {Promise<{}>} a promise to GPP consent data */ updateConsent(pingData: any): Promise; /** * Return a promise to GPP consent data, to be retrieved the next time the CMP signals it's ready. * * @returns {Promise<{}>} */ nextUpdate(): Promise; /** * Return a promise to GPP consent data, to be retrieved immediately if the CMP is ready according to `pingData`, * or as soon as it signals that it's ready otherwise. * * @param pingData * @returns {Promise<{}>} */ updateWhenReady(pingData: any): Promise; isCMPReady(pingData: any): boolean; } export declare function toConsentData(gppData?: any): GPPConsentData; /** * Simply resets the module's consentData variable back to undefined, mainly for testing purposes */ export declare function resetConsentData(): void; export declare function setConsentConfig(config: any): any; export declare function enrichFPDHook(next: any, fpd: any): any; export {};