import type { SalesChatResponse, VisitorInitResponse, LeadCaptureResponse } from './types.js'; /** * Client for the Sales Agent external API endpoints. * Handles visitor tracking, sales-aware chat, and lead capture. */ export declare class SalesApiClient { private baseUrl; private apiKey; constructor(apiUrl: string, apiKey: string); /** * Initialize or resume a visitor session. * Call on first page load to register the visitor with the backend. */ initVisitor(visitorId: string, pageUrl: string, referrer?: string, utmParams?: Record): Promise; /** * Track a page view event. * Call when the visitor navigates to a new page. */ trackPageView(visitorId: string, url: string, title: string, timeOnPageMs?: number, scrollDepth?: number): Promise<{ success: boolean; }>; /** * Associate a visitor with identity data (email, name, etc.). * Call when the visitor provides identifying information. */ identifyVisitor(visitorId: string, data: { email?: string; firstName?: string; lastName?: string; company?: string; role?: string; }): Promise<{ profile: any; }>; /** * Send a sales-aware chat message. * Returns the assistant reply along with sales context (lead score, CTA buttons, etc.). */ salesChat(message: string, options?: { sessionId?: string; visitorId?: string; conversationId?: string; pageUrl?: string; }): Promise; /** * Submit a lead capture form. * Creates or updates a lead record in the backend. */ captureLeadForm(data: { email: string; firstName?: string; lastName?: string; company?: string; role?: string; useCase?: string; budgetRange?: string; timeline?: string; visitorId?: string; playbookId?: string; customFields?: Record; }): Promise; private post; } //# sourceMappingURL=SalesApiClient.d.ts.map