import { type FirstTouchAttribution } from "./attribution.js"; export type FirstTouchSyncResult = { stored: true; firstTouch: FirstTouchAttribution; } | { stored: false; reason: "consent_required" | "expired"; }; /** * `POST /_agent-native/auth/attribution` with `{ firstTouch }`: keep the * browser's first touch in the year-long `an_fts` cookie. Anyone may call it, * signed in or not, but only from this origin. The value already in the * cookie wins unless `preferFirstTouch` picks the new one, so a slow request * from another tab can't replace a better first touch it never saw. Where the * banner applies and the visitor hasn't accepted targeting cookies, it stores * nothing and clears every attribution cookie. Elsewhere it also writes the * browser's `an_ft` and `an_lt` again, so Safari keeps them their 30 days. */ export declare function createFirstTouchHandler(): import("h3").EventHandlerWithFetch>;