import { Action } from "redux"; /** * @typedef {Object} ChatState.MessageState * @property {string} inputText="" Text of the message * @property {Array} [attachedFiles] Files attached to the message * @deprecated * @deprecatedSince 2.0.0 * @altRecommendation Use `chat.conversationInput..inputText` instead * @altRecommendationExample * In Flex 1.x this was accessed with: manager.store.getState().flex.chat.channelInput.inputText * In Flex 2.x these can be accessed with: manager.store.getState().flex.chat.conversationInput..inputText * @private */ export interface MessageState { readonly inputText: string; readonly attachedFiles?: Array; } /** * @category State * @typedef {Object} ChatState.ChatChannelInputState * @property {ChatState.MessageState} sid Message state for a sid * @deprecated * @deprecatedSince 2.0.0 * @altRecommendation Use `chat.conversationInput.` instead * @altRecommendationExample * In Flex 1.x this was accessed with: manager.store.getState().flex.chat.channelInput. * In Flex 2.x these can be accessed with: manager.store.getState().flex.chat.conversationInput. * @private */ export interface ChatChannelInputState { [sid: string]: MessageState; } export interface ChatChannelInputAction extends Action { payload?: any; meta: { channelSid: string; }; } export declare function reduce(state: ChatChannelInputState, action: ChatChannelInputAction): ChatChannelInputState;