import 'rollup-plugin-inject-process-env'; import type { Attribution } from "@xapp/chat-widget-core"; /** * Builds the attribute set for one outgoing message. * * Returns a **fresh object every call**. That is the point of this function, not an * incidental detail: the chat server's `_attributes` is a single object that lives for * the whole conversation, so writing attribution into it directly means the first value * seen is the value sent forever. A visitor who navigates within an SPA to a page with a * different `gclid` would keep sending the original one, which contradicts the * most-recent-click-wins behaviour `attribution.ts` documents and the ad platforms * assume. * * Precedence: whatever the host page set explicitly wins, because that was deliberate. * Everything else comes from the current attribution read. * * @param hostAttributes attributes the host page set at session start * @param attribution the attribution resolved for this message */ export declare function mergeAttribution(hostAttributes: Record | undefined, attribution: Attribution): Record;