export class ResponseItem { _next: ResponseItem | null; /** * @param {ResponseItem} next * @returns {ResponseItem} Current response item */ setNext(next: ResponseItem): ResponseItem; /** * @returns {ResponseItem} */ getNext(): ResponseItem; /** * @returns {boolean} */ hasMarkDown(): boolean; /** * @returns {string} */ toPlainText(): string; /** * This method should return true if the response item was automatically * inserted to responseRest as a pair of response item to another response * item (e.g. ResponseItemPluginAfterCall) * * @returns {boolean} */ isReturn(): boolean; /** * Abstract method * * If the object is not equal to the parameter throws an exception which * describes the difference * * @throws {Error} */ mustBeEqualTo(): void; /** * Extracts object data to Object which can be used to restore the * original object (something like a partial serialization implementation) * * @returns {object} */ toDataObject(): object; /** * @param {string} text * @return {string} */ escapeMarkDown(text: string): string; /** * Deserializes object from a data object * * @param {object} data * @returns {ResponseItem} */ fromDataObject(data: object): ResponseItem; }