export function isValidEvent(event: any): boolean; import { ResponseItemGroup } from "./items/ResponseItemGroup"; /** * Generic chatbot response container */ export class GenericChatResponse extends ResponseItemGroup { _anonymizeNextInput: boolean; /** * @param {string} sessionId * @return {GenericChatResponse} */ setSessionId(sessionId: string): GenericChatResponse; _sessionId: string | undefined; /** * @returns {string} */ getSessionId(): string; /** * @param {object} watsonResponse - Raw response received from Watson * @return {GenericChatResponse} */ setLastRawResponse(watsonResponse: object): GenericChatResponse; _lastRawResponse: object | undefined; /** * @returns {object} */ getLastRawResponse(): object; /** * @returns {GenericChatResponse} */ setAnonymizeNextInput(): GenericChatResponse; /** * @param {Array} items * @returns {GenericChatResponse} */ add(...items: Array): GenericChatResponse; /** * Wraps all items from the end till ResponseItemGroup or the beginning into * ResponseItemGroup * * @return {ResponseItem} The newly created group or null */ putLastItemsToGroup(): ResponseItem; /** * Puts all items from the end till ResponseItemGroup to the last * ResponseItemGroup * * @return {ResponseItem} The group to which the items have been added */ putLastItemsToLastGroup(): ResponseItem; /** * @returns {GenericChatResponse} */ _movePreDisplayItemsToTheBeginning(): GenericChatResponse; /** * Ignored items are e. g. items after a call of a plugin that does not * have a continue action * * @returns {GenericChatResponse} */ _skipIgnoredItems(): GenericChatResponse; /** * Adds ResponseItemDebug corresponding to the first plugin call * (only in case env. variable DEBUG_TO_OUTPUT is set to true) */ _addPluginCallDebug(): void; /** * This method must be called before passing the repsonse to the output * adapter * * @returns {GenericChatResponse} */ finalize(): GenericChatResponse; /** * @returns {ResponseItem} */ lastItem(): ResponseItem; /** * @returns {boolean} */ hasGroup(): boolean; /** * @param {string} str * @returns {GenericChatResponse} */ addError(str: string): GenericChatResponse; /** * Returns empty response if there is no plugin call included * * @returns {GenericChatResponse} */ getItemsFromFirstCallbackTrigger(): GenericChatResponse; /** * @returns {boolean} */ isEmpty(): boolean; /** * @returns {void} */ empty(): void; /** * Abstract method implementation * * @param {GenericChatResponse} response * @return {void} */ mustBeEqualTo(response: GenericChatResponse): void; /** * @returns {boolean} */ hasSomePluginCalls(): boolean; /** * @returns {[]} */ getUserDefinedEvents(): []; } export { ResponseItemGroup };