import type { BrowserContext, ConsentState } from "../types.ts"; declare function toEpValue(v: unknown): string | null; declare function toEpnValue(v: unknown): number | null; export declare function encodeItemToPrValue(item: unknown): string; /** * Builds the query params for a GA4 gtag `/g/collect` request. * * This returns a URLSearchParams with already-stringified values. The caller is * responsible for attaching it to a URL or sending as body. */ export declare function buildGa4CollectQueryParams({ propertyId, eventName, eventParams, cookieHeader, clientId, userId, cookiePrefix, ignoreReferrer, browser, pageLoadMs, hitCounter, engagementTimeMs, uachParams, campaign, contentGroup, consentParams, debugMode, }: { propertyId: string; eventName: string; eventParams: Record; cookieHeader: string; clientId: string | null; userId: string | null; cookiePrefix: string; ignoreReferrer: boolean; browser: BrowserContext; pageLoadMs: number | null; hitCounter: number | null; engagementTimeMs: number | null; uachParams: Record | null; campaign: { campaign_id?: string | null; campaign_source?: string | null; campaign_medium?: string | null; campaign_name?: string | null; campaign_term?: string | null; campaign_content?: string | null; } | null; contentGroup: string | null; consentParams: { gcs?: string | null; gcd?: string | null; consent?: ConsentState; } | null; debugMode: boolean; }): URLSearchParams; export declare const __internal: { ITEM_KEY_MAP: Record; toEpValue: typeof toEpValue; toEpnValue: typeof toEpnValue; }; export {};