/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Message, { type IMessage } from './../../message'; import type { IDescriptorBody } from '../../descriptor'; import { type ISuggestion, type ISuggestionJSON } from '../descriptors/suggestiondescriptor'; export interface IGetAllSuggestionResponse extends IMessage { suggestions?: string[]; suggestionsV2?: ISuggestionJSON[]; } export default class GetAllSuggestionResponse extends Message { private readonly _suggestions?; private readonly _suggestionsV2?; readonly suggestions: ISuggestion[]; static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; constructor(_suggestions?: ISuggestion[] | undefined, _suggestionsV2?: ISuggestion[] | undefined); toJSON(): IGetAllSuggestionResponse; static fromJSON(data: IGetAllSuggestionResponse): GetAllSuggestionResponse; }