import { type McpSignupAttribution } from "./mcp-signup-attribution.js"; export declare const MAGIC_LINK_ATTRIBUTION_PARAM = "signup_attribution"; export interface MagicLinkSignupAttribution { attribution?: Record; anonymousId?: string; sessionId?: string; mcpSignupAttribution?: McpSignupAttribution; } /** * Sign the attribution captured when a magic link is requested. The token is * analytics context only; it never authorizes the user or changes the return * URL. The Better Auth secret keeps the callback from accepting forged data. */ export declare function encodeMagicLinkSignupAttribution(value: MagicLinkSignupAttribution, secret: string, now?: number): string | undefined; export declare function decodeMagicLinkSignupAttribution(token: string | null | undefined, secret: string, now?: number): MagicLinkSignupAttribution | null | undefined; export declare function readMagicLinkSignupAttribution(requestUrl: string | undefined, secret: string, now?: number): MagicLinkSignupAttribution | null | undefined;