import { RuiActor, RuiGroupedChatMessage, RuiTypingEvent } from './rui-chat.model'; import { BehaviorSubject } from 'rxjs'; import { Observable } from 'rxjs/internal/Observable'; export declare class RuiChatService { webSocket: WebSocket; username: string; password: string; actors: any[]; typingSubject: BehaviorSubject[]>; typing$: Observable[]>; messagesSubject: BehaviorSubject; messages$: Observable; private newMessageSubject; private lastTypingMessage; constructor(url: string, username: string, password: string); disconnect(): void; connect(roomId: string): void; listen(): Observable; private sendTypingEvent; send(roomId: string, message: string): void; private disableTyping; typing(typingEvent: RuiTypingEvent): void; private toChatMessage; private getActor; private group; private addMessage; }