UNPKG

admesh-ui-sdk

Version:

Beautiful, modern React components for displaying AI-powered product recommendations with citation-based conversation ads, auto-triggered widgets, floating chat, conversational interfaces, persistent sidebar, and built-in tracking. Includes zero-code SDK

29 lines 899 B
import { default as React } from 'react'; import { AdMeshSDK } from '../sdk/AdMeshSDK'; import { AdMeshTheme } from '../types/index'; /** * Context value provided by AdMeshProvider */ export interface AdMeshContextValue { sdk: AdMeshSDK | null; apiKey: string; sessionId: string; theme?: AdMeshTheme; processedMessageIds: Set<string>; markMessageAsProcessed: (messageId: string) => void; isMessageProcessed: (messageId: string) => boolean; } /** * React Context for AdMesh SDK * * Provides SDK instance and tracking state to all child components */ export declare const AdMeshContext: React.Context<AdMeshContextValue | undefined>; /** * Hook to access AdMesh context * * @throws Error if used outside of AdMeshProvider * @returns AdMeshContextValue */ export declare function useAdMeshContext(): AdMeshContextValue; //# sourceMappingURL=AdMeshContext.d.ts.map