/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Message, { type IMessage } from './../../message'; import type { IDescriptorBody } from '../../descriptor'; import { type IThread, type IThreadJSON } from '../descriptors/commentsthreaddescriptor'; import { type IUserJSON } from '../../users/descriptors/userdescriptor'; export interface IConnectResponse extends IMessage { channel: string; threads?: string[]; threadsV2?: IThreadJSON[]; users?: IUserJSON[]; } export default class ConnectResponse extends Message { readonly channel: string; private readonly _threads?; private readonly _threadsV2?; readonly users?: Record[] | undefined; readonly threads: IThread[]; static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; constructor(channel: string, _threads?: IThread[] | undefined, _threadsV2?: IThread[] | undefined, users?: Record[] | undefined); toJSON(): IConnectResponse; static fromJSON(object: IConnectResponse): ConnectResponse; }