import EventEmitter from 'events'; import type VivochaInterface from './vivochaInterface'; /** * Vivocha React Native SDK class */ export default class Vivocha extends EventEmitter implements VivochaInterface { #private; private EVENTS; private actions; /** * Private constructor for singleton class */ private constructor(); private registerEvent; private unregisterEvent; get instance(): this; /** * Singleton instance getter */ static get instance(): Vivocha; getDataCollection(): Object; setDataCollection(data: Array): void; getConversation(): Object; setCustomerToken(jwt: string): void; unsetCustomerToken(): void; createContact(data: Object, type: string, params?: Object): Promise; getContact(): Object; getUnreadMessageCount(): number; hideView(animated?: boolean): void; showView(animated?: boolean): void; storeSurvey(contactId: string, data: Object): Promise; terminate(hideView?: boolean): void; stopScreenshotSession(): void; isScreenshotSessionAuthorized(): boolean; setPushToken(token: string): void; setPushRegistrationId(regId: string): void; start(accountId: string, serviceId: string, options?: Object): Promise; addLocalization(language: String, localization: Object): this; private addAction; onAction(code: string, callback: (name: string, id: string, data: Object) => void): this; createCallBackNow(phoneNumber: string, data?: Object): Promise; createChat(data?: Object): Promise; createVideoChat(data?: Object): Promise; get developerMode(): boolean; set developerMode(mode: boolean); get theme(): Object; set theme(theme: Object); get sideTab(): boolean; set sideTab(show: boolean); set language(language: string); get agent(): Object; get media(): Object; get vvcu(): string; get vvct(): string; onUrlTapped(callback: (url: string) => boolean): this; stop(): boolean; sendAction(name: string, id: string, data?: Array): this; sendMessage(body: string, type?: string | null, payload?: string | null): this; sendAttachment(url: string, referenceId: string, title: string, mimetype: string, description: string, size: number): this; get SDK_VERSION(): string; get SDK_NAME(): string; get SDK_BASE_URL(): string; } //# sourceMappingURL=vivocha.d.ts.map