import { Visitor, primitive } from "./deps.js"; export declare function useLatestRef(value: T): import("react").MutableRefObject; export declare function shouldRecreateVisitor(currentVisitor: Visitor | undefined, visitorId: string, isAuthenticated: boolean | undefined): boolean; export declare function shouldUpdateConsent(currentVisitor: Visitor, hasConsented: boolean | undefined): boolean; export declare function getAuthenticationAction(currentVisitor: Visitor, isAuthenticated: boolean | undefined): "authenticate" | "unauthenticate" | null; export declare function updateVisitorData(visitor: Visitor, visitorId: string, context: Record, hasConsented: boolean | undefined, isAuthenticated: boolean | undefined): void;