import type { CMConfig } from "../libraries/consentManagement/cmUtils.ts"; export declare let consentConfig: any; export declare let gdprScope: any; declare const CMP_VERSION = 2; /** * @see https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework * @see https://github.com/InteractiveAdvertisingBureau/iabtcf-es/tree/master/modules/core#iabtcfcore */ export type TCFConsentData = { apiVersion: typeof CMP_VERSION; /** * The consent string. */ consentString: string; /** * True if GDPR is in scope. */ gdprApplies: boolean; /** * The response from the CMP. */ vendorData: Record; /** * Additional consent string, if provided by the CMP. * @see https://support.google.com/admanager/answer/9681920?hl=en */ addtlConsent?: `${number}~${string}~${string}`; }; export interface TCFConfig { /** * Defines what the gdprApplies flag should be when the CMP doesn’t respond in time or the static data doesn’t supply. * Defaults to false. */ defaultGdprScope?: boolean; /** * If true, indicates that the publisher is to be considered an “Online Platform” for the purposes of the Digital Services Act */ dsaPlatform?: boolean; } type TCFCMConfig = TCFConfig & CMConfig; declare module '../src/consentHandler' { interface ConsentData { [CONSENT_GDPR]: TCFConsentData; } interface ConsentManagementConfig { [CONSENT_GDPR]?: TCFCMConfig; } } /** * Simply resets the module's consentData variable back to undefined, mainly for testing purposes */ export declare function resetConsentData(): void; /** * A configuration function that initializes some module variables, as well as add a hook into the requestBids function */ export declare function setConsentConfig(config: any): any; export declare function enrichFPDHook(next: any, fpd: any): any; export declare function setOrtbAdditionalConsent(ortbRequest: any, bidderRequest: any): void; export {};