/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Descriptor, { type IDescriptorBody } from './../../descriptor'; interface ICommonComment { commentId: string; commentThreadId: string; userId: string; content: string; documentId: string; } export interface ICommentJSON extends ICommonComment { createdAt: string; attributes: string | null; } export interface IComment extends ICommonComment { createdAt: Date; attributes: Record | null; } export default class CommentDescriptor extends Descriptor { static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; static toJSON(comment: IComment): ICommentJSON; static fromJSON(comment: ICommentJSON): IComment; } export {};