import { AlloyResponsePropositions, PageLoadStartedEvent } from '@repobit/dex-data-layer'; import { AlloyFunction, CdpData, ConfigMbox, MboxParameters, MboxProfileParameters } from './typeDefinitions.js'; declare global { interface Window { alloyProxy: AlloyFunction; BD: { state: { cdpDataPromise: Promise; }; }; } } type JsonObject = Record; type JsonArray = unknown[]; type ParsedResult = { type: 'json'; value: T; } | { type: 'string'; value: string; }; export declare function parseIfJsonStrict(value: unknown): ParsedResult; export default class Target { private urlParameters; private profileUrlParameters; private cachedMboxes; private _configMbox; private controller; private _visitorInfo; private cdpData; private pageLoadStarted; constructor(config?: Partial<{ pageLoadStartedEvent: PageLoadStartedEvent; }>); /** get an object containing all the url query parameters */ private getUrlParameters; get configMbox(): Promise; }; }; useGeoIpPricing: boolean; }> | undefined>; get visitorInfo(): Promise>; /** add adobe_mc parameter at the end of the url */ appendVisitorIDsTo(url: string): Promise; /** abort all the Target calls for casese where Target does not load */ abort(): void; sendCdpData(pageLoadStartedEvent: PageLoadStartedEvent): Promise; private transfromIntoProfileParameters; getOffers(param: { mboxNames: 'config-mbox'; parameters?: MboxParameters; profileParameters?: MboxProfileParameters; }): Promise; getOffers(param: { mboxNames: string; parameters?: MboxParameters; profileParameters?: MboxProfileParameters; }): Promise; getOffers(param: { mboxNames: string[]; parameters?: MboxParameters; profileParameters?: MboxProfileParameters; }): Promise>; getMboxProposition(param: { mboxName: string; parameters?: MboxParameters; profileParameters?: MboxProfileParameters; }): Promise | undefined>; trackOffer(param: { id: AlloyResponsePropositions["id"]; scope: AlloyResponsePropositions["scope"]; scopeDetails: AlloyResponsePropositions["scopeDetails"]; }): Promise; getContentFragment(param: { mboxName: string; parameters?: MboxParameters; profileParameters?: MboxProfileParameters; }): Promise; } export {};