import { AdMeshSDK } from '../sdk/AdMeshSDK'; import { AdMeshTheme, PlatformResponse, ActiveDelegationSession } from '../types/index'; import { Suggestion } from '../components/AdMeshIntentAssistant'; /** * Context value provided by AdMeshProvider */ export interface AdMeshContextValue { sdk: AdMeshSDK | null; apiKey: string; sessionId: string; theme?: AdMeshTheme; language?: string; location?: { city?: string; state?: string; stateCode?: string; country?: string; countryCode?: string; zipcode?: string; latitude?: number; longitude?: number; }; userId?: string; model?: string; messages?: Array<{ role: string; content: string; id?: string; }>; processedMessageIds: Set; recommendationResults: Map; activeDelegationSession: ActiveDelegationSession | null; suggestions: Suggestion[]; isAnalyzingIntent: boolean; intentError: string | null; markMessageAsProcessed: (messageId: string) => void; isMessageProcessed: (messageId: string) => boolean; setRecommendationResult: (messageId: string, result: PlatformResponse | null) => void; getRecommendationResult: (messageId: string) => PlatformResponse | null | undefined; hasRecommendationResult: (messageId: string) => boolean; setActiveDelegationSession: (session: ActiveDelegationSession | null) => void; getActiveDelegationSession: () => ActiveDelegationSession | null; hasActiveDelegationSession: () => boolean; refreshDelegationActivity: (eventType?: string, metadata?: Record) => Promise; stopDelegationSession: (reason?: string, metadata?: Record) => Promise; retryIntentAnalysis: () => Promise; } /** * React Context for AdMesh SDK * * Provides SDK instance and tracking state to all child components */ export declare const AdMeshContext: import('react').Context; /** * Hook to access AdMesh context * * @throws Error if used outside of AdMeshProvider * @returns AdMeshContextValue */ export declare function useAdMeshContext(): AdMeshContextValue; //# sourceMappingURL=AdMeshContext.d.ts.map