/** * User identity management with persistent anonymous IDs */ /** * Generate a unique anonymous user ID */ export declare function generateAnonymousId(): string; /** * Get or create anonymous user ID * This persists across sessions and is the primary way to track users before they identify */ export declare function getAnonymousId(): string; /** * Get user visit statistics */ export declare function getUserVisitStats(): { firstSeen: string | null; lastSeen: string | null; visitCount: number; }; /** * Clear anonymous identity (useful for logout) */ export declare function clearAnonymousIdentity(): void; /** * Link anonymous ID to authenticated user * Returns the anonymous ID that should be sent to backend for user merging */ export declare function linkIdentity(userId: string): string | null; /** * Get comprehensive identity information */ export declare function getIdentityInfo(): { isReturningUser: boolean; daysSinceFirstVisit: number; firstSeen: string | null; lastSeen: string | null; visitCount: number; anonymousId: string; }; //# sourceMappingURL=identity.d.ts.map