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

44 lines 1.2 kB
import { AgentRecommendationResponse, AdMeshTheme } from '../types/index'; import { AdMeshTracker } from './AdMeshTracker'; export interface RenderOptions { containerId: string; followups_container_id?: string; response: AgentRecommendationResponse; theme?: AdMeshTheme; tracker: AdMeshTracker; sessionId: string; apiKey: string; apiBaseUrl?: string; language?: string; geo_country?: string; userId?: string; model?: string; messages?: Array<{ role: string; content: string; id?: string; }>; onPasteToInput?: (content: string) => void; onExecuteQuery?: (query: string) => void | Promise<void>; } export declare class AdMeshRenderer { private roots; constructor(); /** * Render recommendations in the specified container */ render(options: RenderOptions): Promise<void>; /** * Render follow-up in the specified container */ private renderFollowup; /** * Unmount a rendered component */ unmount(containerId: string): void; /** * Unmount all rendered components */ unmountAll(): void; } //# sourceMappingURL=AdMeshRenderer.d.ts.map