import type { IABCMConfig, StaticCMConfig } from "../libraries/consentManagement/cmUtils.ts"; export declare let consentAPI: string; export declare let consentTimeout: number; export declare let staticConsentData: any; type USPConsentData = string; type BaseUSPConfig = { /** * Length of time (in milliseconds) to delay auctions while waiting for consent data from the CMP. * Default is 50. */ timeout?: number; }; type StaticUSPData = { getUSPData: { uspString: USPConsentData; }; }; type USPCMConfig = BaseUSPConfig & (IABCMConfig | StaticCMConfig); declare module '../src/consentHandler' { interface ConsentData { [CONSENT_USP]: USPConsentData; } interface ConsentManagementConfig { [CONSENT_USP]?: USPCMConfig; } } /** * If consentManagementUSP module is enabled (ie included in setConfig), this hook function will attempt to fetch the * user's encoded consent string from the supported USPAPI. Once obtained, the module will store this * data as part of a uspConsent object which gets transferred to adapterManager's uspDataHandler object. * This information is later added into the bidRequest object for any supported adapters to read/pass along to their system. * @param {object} reqBidsConfigObj required; This is the same param that's used in pbjs.requestBids. * @param {function} fn required; The next function in the chain, used by hook.ts */ export declare const requestBidsHook: import("../src/hook.js").BeforeHook<"async", (options: import("../src/prebid.ts").PrivRequestBidsOptions | import("../src/prebid.ts").StartAuctionOptions) => void>; /** * 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 * @param {object} config required; consentManagementUSP module config settings; usp (string), timeout (int) */ export declare function setConsentConfig(config: any): void; export declare function enrichFPDHook(next: any, fpd: any): any; export {};