/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Descriptor, { type IDescriptorBody } from './../../descriptor'; interface ICommonSuggestion { id: string; authorId: string; type: string; hasComments?: boolean; state?: string; } export interface ISuggestion extends ICommonSuggestion { createdAt?: Date; data?: Record | null; attributes?: Record | null; } export interface ISuggestionJSON extends ICommonSuggestion { createdAt?: string; data?: string | null; attributes?: string | null; } export default class SuggestionDescriptor extends Descriptor { static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; static toJSON(suggestion: ISuggestion): ISuggestionJSON; static fromJSON(suggestion: ISuggestionJSON): ISuggestion; } export {};