import * as actions from './actions'; import * as connectionStatuses from './constants/connectionStatuses'; import * as eventTypes from './constants/eventTypes'; import * as serverDisconnectionReasons from './constants/serverDisconnectionReasons'; import * as serverErrorCodes from './constants/serverErrorCodes'; import * as serverPushActions from './constants/serverPushActions'; import * as sortOrders from './constants/sortOrders'; import * as userTypes from './constants/userTypes'; import * as clientEntities from './types/clientEntities'; import { RequestBodyResumeChatData, RequestBodyStartChatData } from './clientDataParsers'; import { SendCustomerActionsOptions } from './sendCustomerActions'; import { SendGreetingButtonClickedOptions } from './sendGreetingButtonClicked'; import { Config, Page, SortOrder } from './types'; import { UploadFileOptions } from './uploadFile'; export { default as debug } from './debug'; export { connectionStatuses, eventTypes, serverDisconnectionReasons, serverErrorCodes, serverPushActions, sortOrders, userTypes, }; export * from './types/clientEntities'; export type { CustomerSessionFields, CustomerData, CustomerDataProvider, IdentityProvider, Config, ConnectionStatus, Page, SortOrder, SubscribablePush, } from './types/index'; export type { CustomerAuth, CustomerAuthToken } from '@livechat/customer-auth'; export type { SendCustomerActionsAction, SendCustomerActionsOptions } from './sendCustomerActions'; export * from './serverEventParser'; export { parseForm } from './serverFrameParser'; export declare const init: (config: Config) => Readonly<{ acceptGreeting({ greetingId, uniqueId }: { greetingId: number; uniqueId: string; }): Promise>; auth: import("@livechat/customer-auth/src/types").CustomerAuth; cancelGreeting({ uniqueId }: { uniqueId: string; }): Promise>; cancelRate(params: { chatId: string; properties: Array<'score' | 'comment'>; }): Promise>; connect: () => void; deactivateChat({ id }: { id: string; }): Promise>; deleteChatProperties({ id, properties }: { id: string; properties: Record; }): Promise>; deleteEventProperties({ chatId, threadId, eventId, properties, }: { chatId: string; threadId: string; eventId: string; properties: Record; }): Promise>; deleteThreadProperties({ chatId, threadId, properties, }: { chatId: string; threadId: string; properties: Record; }): Promise>; destroy(): void; disconnect(): void; getChat({ chatId, threadId }: { chatId: string; threadId?: string | undefined; }): Promise<{ thread: clientEntities.Thread | null; id: string; access: clientEntities.Access; users: clientEntities.ChatUser[]; properties: import("./types/serverEntities").Properties; eventsSeenUpToMap: clientEntities.EventsSeenUpToMap; }>; getChatHistory({ chatId }: { chatId: string; }): import("./chatHistory").HistoryIterator; getCustomer(): Promise<{ type: "customer"; id: string; name?: string | undefined; email?: string | undefined; avatar?: string | undefined; sessionFields: clientEntities.CustomerSessionFields; statistics: { chatsCount: number; threadsCount: number; visitsCount: number; pageViewsCount: number; greetingsShownCount: number; greetingsAcceptedCount: number; }; }>; getForm({ groupId, type }: { groupId: number; type: clientEntities.FormType; }): Promise<{ enabled: false; } | { form: { id: string; fields: clientEntities.FormField[]; }; enabled: true; }>; getUrlInfo({ url }: { url: string; }): Promise; listChats(params?: { pageId: string; } | { pageId?: undefined; limit?: number; }): Promise<{ chatsSummary: clientEntities.ChatSummary[]; totalChats: number; users: clientEntities.ChatUser[]; previousPageId: string | null; nextPageId: string | null; }>; listGroupStatuses({ groupIds }?: { groupIds?: number[] | undefined; }): Promise>; listThreads(params: { chatId: string; sortOrder?: SortOrder; limit?: number; pageId?: undefined; minEventsCount?: number; } | { chatId: string; pageId: string; }): Promise<{ threads: clientEntities.Thread[]; previousPageId: string | null; nextPageId: string | null; }>; markEventsAsSeen({ chatId, seenUpTo }: { chatId: string; seenUpTo: string; }): Promise>; on: { (type: Key, handler: import("mitt").Handler<{ [x: string]: unknown; [x: symbol]: unknown; }[Key]>): void; (type: "*", handler: import("mitt").WildcardHandler<{ [x: string]: unknown; [x: symbol]: unknown; }>): void; }; once: { (type: Key, handler: import("mitt").Handler<{ [x: string]: unknown; [x: symbol]: unknown; }[Key]>): void; (type: "*", handler: import("mitt").WildcardHandler<{ [x: string]: unknown; [x: symbol]: unknown; }>): void; }; off: { (type: Key_1, handler?: import("mitt").Handler<{ [x: string]: unknown; [x: symbol]: unknown; }[Key_1]> | undefined): void; (type: "*", handler: import("mitt").WildcardHandler<{ [x: string]: unknown; [x: symbol]: unknown; }>): void; } & { (type: "*", handler: import("mitt").WildcardHandler<{ [x: string]: unknown; [x: symbol]: unknown; }>): void; (): void; }; rateChat(params: { chatId: string; rating: { comment?: string; score?: 0 | 1; }; }): Promise>; requestWelcomeMessage({ id }?: { id?: string | undefined; }): Promise<{ id: string; predictedAgent: { type: "agent"; id: string; name: string; avatar: string; jobTitle: string; isBot: boolean; } & { botType: "chatbot" | "ai_agent"; }; queue: boolean; }>; resumeChat(data: RequestBodyResumeChatData): Promise; sendEvent(params: Parameters[0]): Promise; sendGreetingButtonClicked(options: SendGreetingButtonClickedOptions): Promise; sendCustomerActions(options: SendCustomerActionsOptions): Promise; sendRichMessagePostback({ chatId, threadId, eventId, postback, }: { chatId: string; threadId: string; eventId: string; postback: { id: string; toggled: boolean; }; }): Promise>; setCustomerSessionFields({ sessionFields }: { sessionFields: clientEntities.CustomerSessionFields; }): Promise>; setSneakPeek: ({ chatId, sneakPeekText }: { chatId: string; sneakPeekText: string; }) => void; startChat(data?: RequestBodyStartChatData): Promise; updateChatProperties({ id, properties }: { id: string; properties: clientEntities.Properties; }): Promise>; updateCustomer(update: clientEntities.CustomerUpdate): Promise>; updateCustomerPage(page: Page): void; updateEventProperties({ chatId, threadId, eventId, properties, }: { chatId: string; threadId: string; eventId: string; properties: clientEntities.Properties; }): Promise>; updateThreadProperties({ chatId, threadId, properties, }: { chatId: string; threadId: string; properties: clientEntities.Properties; }): Promise>; uploadFile(options: UploadFileOptions): { promise: Promise<{ url: string; }>; cancel(): void; }; }>; export type CustomerSDK = ReturnType; //# sourceMappingURL=index.d.ts.map