import { f as ClientOptions, N as NexorClient, d as ChatInitOptions, c as ChatHandle } from './config-C39P5Aax.js'; export { A as AutomationInput, B as BulkResultEntry, C as Campaign, a as ChatChannelKey, b as ChatChannels, e as ChatLeadCapture, g as CreateLeadBulkResponse, h as CreateLeadInput, i as CreateLeadResponse, j as CreateMeetingInput, F as ForceFirstMessage, G as GetLeadHistoryParams, k as GetLeadHistoryResponse, l as GetLeadResponse, I as ISODateString, m as IsPausedResponse, L as Lead, n as LeadHistoryItem, o as ListTemplatesParams, M as MeetingNotesInput, R as RequestOptions, p as ResumeAutomationInput, S as SendMessageInput, q as SyncTagsInput, r as SyncTagsResponse, U as UUID, W as WhatsAppTemplate, s as Workflow, t as WorkflowRunStub } from './config-C39P5Aax.js'; declare class NexorError extends Error { constructor(message: string); } declare class NexorAPIError extends NexorError { status: number; code: string; body: unknown; requestId?: string; constructor(opts: { status: number; code?: string; message: string; body?: unknown; requestId?: string; }); } declare class NexorAuthError extends NexorAPIError { constructor(opts: { message: string; body?: unknown; requestId?: string; }); } declare class NexorValidationError extends NexorAPIError { constructor(opts: { message: string; body?: unknown; requestId?: string; }); } declare class NexorNetworkError extends NexorError { cause?: unknown; constructor(message: string, cause?: unknown); } /** * Singleton API. After `init({apiKey})`, call top-level helpers like * `createLead`, `getLead`, `initChat`, etc. * * import nexor from "@getnexorai/sdk"; * nexor.init({ apiKey: "nx_live_…" }); * await nexor.createLead({ first_name: "Ada", email: "ada@example.com" }); * * For multi-tenant / server-side use where a singleton doesn't fit, instantiate * the underlying client directly: * * import { NexorClient } from "@getnexorai/sdk"; * const client = new NexorClient({ apiKey }); */ declare function createClient(opts: ClientOptions): NexorClient; declare function init(opts: ClientOptions): NexorClient; declare function isInitialized(): boolean; declare function reset(): void; /** * The default export — a ready-to-use, lazily-initialized singleton. * * Every method below proxies to the underlying NexorClient created by `init()`, * so the surface mirrors NexorClient one-for-one with no boilerplate. */ declare const nexor: { init: typeof init; isInitialized: typeof isInitialized; reset: typeof reset; readonly client: NexorClient; createLead: NexorClient["createLead"]; createLeadsBulk: NexorClient["createLeadsBulk"]; updateLead: NexorClient["updateLead"]; getLead: NexorClient["getLead"]; getLeadHistory: NexorClient["getLeadHistory"]; isLeadPaused: NexorClient["isLeadPaused"]; stopAutomation: NexorClient["stopAutomation"]; resumeAutomation: NexorClient["resumeAutomation"]; syncLeadTags: NexorClient["syncLeadTags"]; listLeadMeetings: NexorClient["listLeadMeetings"]; listWorkflows: NexorClient["listWorkflows"]; listCampaigns: NexorClient["listCampaigns"]; listTemplates: NexorClient["listTemplates"]; sendMessage: NexorClient["sendMessage"]; createMeeting: NexorClient["createMeeting"]; createMeetingNotes: NexorClient["createMeetingNotes"]; initChat: (options: ChatInitOptions) => ChatHandle; }; export { ChatHandle, ChatInitOptions, ClientOptions, NexorAPIError, NexorAuthError, NexorClient, NexorError, NexorNetworkError, NexorValidationError, createClient, nexor as default, nexor };