import type { StartAuctionOptions } from "../../src/prebid.ts"; import type { ProviderConfig, RTDProvider, RTDProviderConfig } from "./spec.ts"; /** @type {string} */ declare const MODULE_NAME = "realTimeData"; export declare let subModules: any[]; /** * Register a Real-Time Data (RTD) submodule. * * @param {Object} submodule The RTD submodule to register. * @param {string} submodule.name The name of the RTD submodule. * @param {number} [submodule.gvlid] The Global Vendor List ID (GVLID) of the RTD submodule. * @returns {function(): void} A de-registration function that will unregister the module when called. */ export declare function attachRealTimeDataProvider(submodule: any): () => void; type RealTimeDataConfig = { dataProviders: (RTDProviderConfig | RTDProviderConfig)[]; /** * Maximum amount of time (in milliseconds) to delay auctions while waiting for RTD providers. */ auctionDelay?: number; }; declare module '../../src/config' { interface Config { [MODULE_NAME]?: RealTimeDataConfig; } } export declare function init(config: any): void; /** * loop through configured data providers If the data provider has registered getBidRequestData, * call it, providing reqBidsConfigObj, consent data and module params * this allows submodules to modify bidders * @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 setBidRequestsData: import("../../src/hook.js").BeforeHook<"async", (options: import("../../src/prebid.ts").PrivRequestBidsOptions | StartAuctionOptions) => void>; /** * loop through configured data providers If the data provider has registered getTargetingData, * call it, providing ad unit codes, consent data and module params * the sub mlodle will return data to set on the ad unit * this function used to place key values on primary ad server per ad unit * @param {Object} auction object received on auction end event */ export declare function getAdUnitTargeting(auction: any): any; export declare function onDataDeletionRequest(next: any, ...args: any[]): void; export {};