import { User } from "@twilio/conversations"; import { Action, Dispatch } from "redux"; import { UserDescriptor } from "twilio-chat"; /** * A state of chat users value UserDescriptor from Twilio Chat SDK. * * @typedef {object} ChatState.ChatUserState * @property {UserDescriptor} sid User descriptor of the user by sid. See structure [here](https://media.twiliocdn.com/sdk/js/chat/releases/3.4.0/docs/UserDescriptor.html). * @memberof AppState */ export interface ChatUserState { [sid: string]: UserDescriptor; } export declare const ACTION_CACHE_USERS = "CHAT_CACHE_USERS"; interface ChatUserStateAction extends Action { readonly payload?: any; } export declare function reduce(state: ChatUserState, action: ChatUserStateAction): ChatUserState; export declare class Actions { static get dispatcher(): Dispatch; static dispatchCachedUsers(users: Array): void; private static userDescriptorRequestCache; static fetchUser(identity: string): Promise; } export {};