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
36 lines • 1.03 kB
TypeScript
import { default as React } from 'react';
import { AdMeshTheme } from '../types/index';
export interface AdMeshProviderProps {
/** AdMesh API key (required) */
apiKey: string;
/** Session ID (required) */
sessionId: string;
/** Optional theme configuration */
theme?: AdMeshTheme;
/** Optional API base URL (defaults to production) */
apiBaseUrl?: string;
/** Child components */
children: React.ReactNode;
}
/**
* AdMeshProvider - Simplified SDK integration for React applications
*
* Handles:
* - SDK initialization and lifecycle management
* - Message deduplication tracking
* - Session and message ID management
* - Error handling and logging
*
* @example
* ```tsx
* <AdMeshProvider
* apiKey={process.env.NEXT_PUBLIC_ADMESH_API_KEY}
* sessionId={sessionId}
* >
* <Chat messages={messages} />
* </AdMeshProvider>
* ```
*/
export declare const AdMeshProvider: React.FC<AdMeshProviderProps>;
export default AdMeshProvider;
//# sourceMappingURL=AdMeshProvider.d.ts.map