import { Subscription } from 'rxjs'; import { Service } from '../../services/service'; import { Builder } from 'strophe.js'; import { MaybeArray } from 'date-fns'; import { StropheConnection, StropheHandler, StropheHandlerFn } from '../../libs/strophe/types'; export declare const XMPP_SVC = "XmppService"; export declare class XmppService extends Service { private static REQUEST_TIMEOUT; private logger; private authService; private settingsService; private mainService; private eventService; private rxConnectionSubject; private rxContactSubject; private showBodyMessage; private presenceWaitingList; private xmppServerURL; private stropheStatus; private presenceStatus; private pingTimeout; private connecting; private disconnectInfo; private connectionWatcherTimout; private isInitialPresenceSent; private retrieveMessageHandler; private bulkHistoryHandler; private reconnectInProgress; private reconnectionDelay; private reconnectTimeout; private connectivityEventSubscription; private lastPingDate; started: boolean; connection: StropheConnection; jid: string; fullJid: string; changePasswordInfo: any; contactServiceReady: boolean; connected: boolean; reconnectionMode: boolean; static getInstance(): XmppService; static build(): XmppService; protected constructor(); private onHandleConnectivity; start(): Promise; stop(): Promise; resetAllObjects(): void; connect(): Promise; private saveLastPingDate; waitForGuestXmppReconnection(): Promise; disconnect(reason: string): Promise; private stropheConnect; private connectionWatcher; private handleRawXmppMessage; private anonymizeTag; private anonymizeAttribut; private messageBodyDiscretion; private messageTagDiscretion; private onDisconnectEvent; private interruptAutoReconnect; autoReconnect(): Promise; subscribeToContactEvents(observer: any): Subscription; subscribeToConnectionEvents(observer: any): Subscription; publishContactEvent(name: string, params: any): void; publishConnectionEvent(name: string, data?: any): void; private onRosterChangedMessageReceived; sendPresence(show: string, message?: string, auth?: boolean, userOptions?: { im: boolean; alert: boolean; companyid: string; ringingOnDnd: boolean; rejectOnBusy: boolean; }): void; resetPresence(status: any): void; private onPresenceMessageReceived; getPresenceWaitingList(): any[]; resetPresenceWaitingList(): void; addRetrieveMessageHandler(handler: any): void; addBulkHistoryHandler(handler: any): void; onMamBulkMessageReceived(stanza: any): boolean; private onMamMessageReceived; getBareJidFromJid(jid: string): string; getResourceFromJid(jid: string): string; isMobileResource(jid: string): boolean; addHandler(handler: StropheHandlerFn, ns: string, name?: string, type?: string | string[]): StropheHandler; deleteHandler(handRef: StropheHandler): void; isConnectedJid(jid: string): boolean; send(stanza: MaybeArray | MaybeArray): Promise; sendIQ(iq: Builder | Element, timeout?: number): Promise; } //# sourceMappingURL=xmpp.service.d.ts.map