/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Descriptor, { type IDescriptorBody } from './../../descriptor'; import { type IComment, type ICommentJSON } from './commentdescriptor'; interface ICommonThread { commentThreadId: string; resolvedBy?: string | null; } export interface IThreadJSON extends ICommonThread { comments?: ICommentJSON[]; attributes?: string | null; createdAt?: string; deletedAt?: string | null; resolvedAt?: string | null; context?: string | null; unlinkedAt?: string | null; } export interface IThread extends ICommonThread { comments?: IComment[]; createdAt?: Date; deletedAt?: Date | null; resolvedAt?: Date | null; attributes?: Record | null; context?: Record | null; unlinkedAt?: Date | null; } export default class CommentsThreadDescriptor extends Descriptor { static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; static toJSON(thread: IThread): IThreadJSON; static fromJSON(thread: IThreadJSON): IThread; } export {};