/** * Hook to access AdMesh SDK and tracking state * * Must be used within an * * @returns Object with SDK instance and tracking methods * * @example * ```tsx * const { sdk, sessionId, markMessageAsProcessed } = useAdMesh(); * * // Use SDK to show recommendations * await sdk?.showRecommendations({ * query: 'user query', * containerId: 'recommendations-container', * sessionId, * messageId * }); * * // Mark message as processed to avoid duplicates * markMessageAsProcessed(messageId); * ``` */ export declare function useAdMesh(): { /** AdMesh SDK instance */ sdk: import('..').AdMeshSDK | null; /** API key */ apiKey: string; /** Session ID */ sessionId: string; /** Theme configuration */ theme: import('..').AdMeshTheme | undefined; /** User language in BCP 47 format (e.g., "en-US") - from AdMeshProvider */ language: string | undefined; /** Detailed user location from AdMeshProvider */ location: { city?: string; state?: string; stateCode?: string; country?: string; countryCode?: string; zipcode?: string; latitude?: number; longitude?: number; } | undefined; /** Anonymous hashed user ID - from AdMeshProvider */ userId: string | undefined; /** AI model identifier (e.g., "gpt-4o") - from AdMeshProvider */ model: string | undefined; /** Conversation history - from AdMeshProvider */ messages: { role: string; content: string; id?: string; }[] | undefined; /** Set of processed message IDs (for deduplication) */ processedMessageIds: Set; /** Ephemeral per-session recommendation results keyed by messageId */ recommendationResults: Map; activeDelegationSession: import('..').ActiveDelegationSession | null; /** Mark a message as processed to prevent duplicate recommendations */ markMessageAsProcessed: (messageId: string) => void; /** Check if a message has already been processed */ isMessageProcessed: (messageId: string) => boolean; /** Store the recommendation result for a message within the current provider session */ setRecommendationResult: (messageId: string, result: import('..').PlatformResponse | null) => void; /** Read a stored recommendation result for a message within the current provider session */ getRecommendationResult: (messageId: string) => import('..').PlatformResponse | null | undefined; /** Check whether a recommendation result exists for a message within the current provider session */ hasRecommendationResult: (messageId: string) => boolean; setActiveDelegationSession: (session: import('..').ActiveDelegationSession | null) => void; getActiveDelegationSession: () => import('..').ActiveDelegationSession | null; hasActiveDelegationSession: () => boolean; refreshDelegationActivity: (eventType?: string, metadata?: Record) => Promise; stopDelegationSession: (reason?: string, metadata?: Record) => Promise; }; export default useAdMesh; //# sourceMappingURL=useAdMesh.d.ts.map