/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { ConversationDetails } from "./types/ConversationDetailsTypes"; export { ConversationDetails } from "./types/ConversationDetailsTypes"; export namespace Components { interface AudioBubble { "audioProgressColor": string; "audioUrl": string; "audioWaveColor": string; "bgColor": string; "borderRadius": string; "isDelivered": Boolean; "isRead": Boolean; "isSelf": boolean; "messageId": String; "messageType": number; "reactions": any; "showFooter": Boolean; "textColor": string; "time": string; "timeColor": String; } interface BlockChatList { "goBack": () => void; } interface ChatApp { /** * Changes the theme and saves the preference to localStorage * @param newTheme The theme to change to ('light' or 'dark') */ "changeTheme": (newTheme: "light" | "dark") => Promise<"dark" | "light">; "mode": 'light' | 'dark'; "themeObject": { [key: string]: string }; "themePath": string; /** * Toggles between light and dark themes */ "toggleTheme": () => Promise<"dark" | "light">; } interface ChatDocumentMessageBubble { } interface ChatFooter { "allConversationList": any; "allMessages": any; "changeMessageSendingState": (newState: boolean) => void; "changeScrollToBottomState": (newState: boolean) => void; "conversationDetails": ConversationDetails; "handleremoveReplyMessage": () => void; "refetchMessages": () => void; "replyMessage": any; "selectedConversationId": string; "sortConversationsByLatestMessage": (conversations: any[]) => void; "updateAllMessages": (newMessages: any) => void; "updateConversationListProp": (updatedList: any[]) => void; "userMetaData": any; } interface ChatImageMessageBubble { } interface ChatSideBar { "allMessages": any; "conversationDetails": any; "conversationList": any; "customTypes": any; "filterTab": any; "filterTabHover": any; "filterTabsContainer": any; "handleBackButtonClick"?: Function; "handleSearchData": (searchTag: string) => void; "hasMoreConversations": boolean; "isAllChatButton": boolean; "isChatFilter": boolean; "isConversationLoading": Boolean; "isMqttConnected": boolean; "isPreloadingForFilter": boolean; "isSidebarHeaderLabel": boolean; "isSidebarHeaderSearch": boolean; "isTyping": boolean; "leofferAccountId": string; "onDeleteConversation": (conversationId: string) => void; "sidebarColor": string; "sidebarHeaderLabel": string; "sidebarSelectedColor": string; "typingConversationId": string; "typingUserName": String; "unreadConversationsCount": number; "userMetaData": any; } interface ChatVideoMessageBubble { } interface ForwardMemebers { "dialogData": any; } interface GroupCast { "groupCastData": any[]; "isLoadingMore": boolean; } interface LoginPage { } interface MemberAdd { "dialogData": any; } interface MyComponent { /** * The first name */ "first": string; /** * The last name */ "last": string; /** * The middle name */ "middle": string; } interface ProfilePage { "closeDrawer": () => void; "conversationId": string; "defaultTheme": string; "getPresignedUrl": (file: File) => Promise; "getUserDetails": () => void; "name": string; "profilePhotoUrl": string; "toggleTheme": () => void; "updateUserProfile": (payload: { name?: string; profilePhotoUrl?: string; }) => Promise; } interface ReactionContainer { "messageId": string; "reactions": any[]; "userMetaData": any; } interface SignupPage { } interface ThemeProvider { /** * Current theme mode */ "mode": 'light' | 'dark'; /** * Public method to set theme explicitly */ "setTheme": (mode: "light" | "dark") => Promise<"dark" | "light">; /** * Path to the CSS theme file */ "themePath": string; /** * Public method to toggle between light and dark themes */ "toggleTheme": () => Promise<"dark" | "light">; } interface WebChat { "accountId": string; "appSecret": string; "baseUrl": string; "containerId": string; "conversationId": string; "defaultTheme": string; "getPaymentsData"?: Function; "groupcastEnabled"?: boolean; "handleBackButtonClick"?: Function; "hostUrl"?: string; "isAllChatButton": boolean; "isChatFilter": boolean; "isSidebarHeaderLabel": boolean; "isSidebarHeaderSearch": boolean; "isometrikUserId": string; "keysetId": string; "leofferAccountId"?: string; "licenseKey": string; "name": string; "projectId": string; "sidebarColor": string; "sidebarHeaderLabel": string; "sidebarSelectedColor": string; "themeUrl": string; "toggleTheme": () => void; "userSecret": string; "userToken": string; } interface WebChatBody { "allAttachments": any; "allMessages": any; "changeScrollToBottomState": (newState: boolean) => void; "changeScrollToTopState": (newState: boolean) => void; "conversationDetails": any; "conversationList": any; "deleteForAll": ({ conversationId, messageIds }) => void; "deleteForSelf": ({ conversationId, messageIds }) => void; "highlightedMessageId": string | null; "isChatClosed": boolean; "isChatMinimized": boolean; "isMessageLimitEnd": boolean; "isMessageSending": boolean; "isMessagesLoading": boolean; "isScrollToBottom": boolean; "isScrollToTop": boolean; "loadingMediaGallery": boolean; "newMessageNotification": { messageId: string; count: number; conversationId: string } | null; "onMediaClick": () => void; "scrollToMessage": (messageId: string) => Promise; "selectedConversationId": string; "skip": number; "updateAllMessages": (newMessages: any) => void; "updateSkip": () => void; "userMetaData": any; } interface WebChatHeader { "allAttachments": any; "chatBodyRef": HTMLWebChatBodyElement; "conversationDetails": ConversationDetails; "eligibleMembers": any[]; "getPaymentsData": Function; "handleCloseChat": () => void; "hasMoreEligibleMembers": boolean; "headerBgColor": string; "headerLastSeenColor": string; "headerSvgColor": string; "headerUsernameColor": string; "isBlocked": boolean | string; "isLoadingMessage": boolean; "isTyping": boolean; "lastSeen": string; "leofferAccountId": string; "messageAction": object; "onBackButtonClick": Function; "onClearConversation": () => void; "onConversationCleared": () => void; "onSearchHandler": (searchText: string) => void; "onSearchResultClick": (messageId: string) => void; "searchedMessageDetails": any; "selectedConversationId": string; "typingConversationId": string; "typingUserName": string; "userMetaData": any; } interface WebChatRightSidebar { "allAttachments": []; "allLinks": any; "allLinksCount": number; "chatBodyRef": HTMLWebChatBodyElement; "conversationIdFromContactinfo": string | null; "conversationMetaData": any; "eligibleMembers": any[]; "groupcastMembers": any; "handleChatSelect": (conversationId: string) => void; "hasMoreEligibleMembers": boolean; "isBlocked": boolean | string; "isContactInfoOpen": boolean; "isLoadingMessage": boolean; "isOpenSearchBar": boolean; "isProfileInfoOpen": boolean; "messageAction": { action: string; initiator: boolean }; "onSearchHandler": (text: string) => void; "onSearchResultClick": (messageId: string) => Promise; "openOwnProfile": () => void; "searchedMessageDetails": any[]; "selectedConversationId": string | null; "userMetaData": any; } } export interface ChatSideBarCustomEvent extends CustomEvent { detail: T; target: HTMLChatSideBarElement; } export interface GroupCastCustomEvent extends CustomEvent { detail: T; target: HTMLGroupCastElement; } export interface LoginPageCustomEvent extends CustomEvent { detail: T; target: HTMLLoginPageElement; } export interface SignupPageCustomEvent extends CustomEvent { detail: T; target: HTMLSignupPageElement; } export interface WebChatCustomEvent extends CustomEvent { detail: T; target: HTMLWebChatElement; } export interface WebChatBodyCustomEvent extends CustomEvent { detail: T; target: HTMLWebChatBodyElement; } export interface WebChatHeaderCustomEvent extends CustomEvent { detail: T; target: HTMLWebChatHeaderElement; } declare global { interface HTMLAudioBubbleElement extends Components.AudioBubble, HTMLStencilElement { } var HTMLAudioBubbleElement: { prototype: HTMLAudioBubbleElement; new (): HTMLAudioBubbleElement; }; interface HTMLBlockChatListElement extends Components.BlockChatList, HTMLStencilElement { } var HTMLBlockChatListElement: { prototype: HTMLBlockChatListElement; new (): HTMLBlockChatListElement; }; interface HTMLChatAppElement extends Components.ChatApp, HTMLStencilElement { } var HTMLChatAppElement: { prototype: HTMLChatAppElement; new (): HTMLChatAppElement; }; interface HTMLChatDocumentMessageBubbleElement extends Components.ChatDocumentMessageBubble, HTMLStencilElement { } var HTMLChatDocumentMessageBubbleElement: { prototype: HTMLChatDocumentMessageBubbleElement; new (): HTMLChatDocumentMessageBubbleElement; }; interface HTMLChatFooterElement extends Components.ChatFooter, HTMLStencilElement { } var HTMLChatFooterElement: { prototype: HTMLChatFooterElement; new (): HTMLChatFooterElement; }; interface HTMLChatImageMessageBubbleElement extends Components.ChatImageMessageBubble, HTMLStencilElement { } var HTMLChatImageMessageBubbleElement: { prototype: HTMLChatImageMessageBubbleElement; new (): HTMLChatImageMessageBubbleElement; }; interface HTMLChatSideBarElementEventMap { "chatTileSelected": any; "groupExited": any; } interface HTMLChatSideBarElement extends Components.ChatSideBar, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLChatSideBarElement, ev: ChatSideBarCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLChatSideBarElement, ev: ChatSideBarCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLChatSideBarElement: { prototype: HTMLChatSideBarElement; new (): HTMLChatSideBarElement; }; interface HTMLChatVideoMessageBubbleElement extends Components.ChatVideoMessageBubble, HTMLStencilElement { } var HTMLChatVideoMessageBubbleElement: { prototype: HTMLChatVideoMessageBubbleElement; new (): HTMLChatVideoMessageBubbleElement; }; interface HTMLForwardMemebersElement extends Components.ForwardMemebers, HTMLStencilElement { } var HTMLForwardMemebersElement: { prototype: HTMLForwardMemebersElement; new (): HTMLForwardMemebersElement; }; interface HTMLGroupCastElementEventMap { "groupcastTileSelected": any; "groupcastScrolledToBottom": any; } interface HTMLGroupCastElement extends Components.GroupCast, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLGroupCastElement, ev: GroupCastCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLGroupCastElement, ev: GroupCastCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLGroupCastElement: { prototype: HTMLGroupCastElement; new (): HTMLGroupCastElement; }; interface HTMLLoginPageElementEventMap { "loginSuccess": string; "trySignup": string; } interface HTMLLoginPageElement extends Components.LoginPage, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLLoginPageElement, ev: LoginPageCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLLoginPageElement, ev: LoginPageCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLLoginPageElement: { prototype: HTMLLoginPageElement; new (): HTMLLoginPageElement; }; interface HTMLMemberAddElement extends Components.MemberAdd, HTMLStencilElement { } var HTMLMemberAddElement: { prototype: HTMLMemberAddElement; new (): HTMLMemberAddElement; }; interface HTMLMyComponentElement extends Components.MyComponent, HTMLStencilElement { } var HTMLMyComponentElement: { prototype: HTMLMyComponentElement; new (): HTMLMyComponentElement; }; interface HTMLProfilePageElement extends Components.ProfilePage, HTMLStencilElement { } var HTMLProfilePageElement: { prototype: HTMLProfilePageElement; new (): HTMLProfilePageElement; }; interface HTMLReactionContainerElement extends Components.ReactionContainer, HTMLStencilElement { } var HTMLReactionContainerElement: { prototype: HTMLReactionContainerElement; new (): HTMLReactionContainerElement; }; interface HTMLSignupPageElementEventMap { "tryLogin": string; "signupSuccess": string; } interface HTMLSignupPageElement extends Components.SignupPage, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLSignupPageElement, ev: SignupPageCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLSignupPageElement, ev: SignupPageCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSignupPageElement: { prototype: HTMLSignupPageElement; new (): HTMLSignupPageElement; }; interface HTMLThemeProviderElement extends Components.ThemeProvider, HTMLStencilElement { } var HTMLThemeProviderElement: { prototype: HTMLThemeProviderElement; new (): HTMLThemeProviderElement; }; interface HTMLWebChatElementEventMap { "unreadMessageCountUpdated": any; "conversationNotFound": any; "messageReadStatusUpdated": any; "conversationDetailsUpdated": any; } interface HTMLWebChatElement extends Components.WebChat, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLWebChatElement, ev: WebChatCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLWebChatElement, ev: WebChatCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLWebChatElement: { prototype: HTMLWebChatElement; new (): HTMLWebChatElement; }; interface HTMLWebChatBodyElementEventMap { "replyMessageDetails": any; "newMessageCountReset": any; "messageReadStatusUpdated": any; } interface HTMLWebChatBodyElement extends Components.WebChatBody, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLWebChatBodyElement, ev: WebChatBodyCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLWebChatBodyElement, ev: WebChatBodyCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLWebChatBodyElement: { prototype: HTMLWebChatBodyElement; new (): HTMLWebChatBodyElement; }; interface HTMLWebChatHeaderElementEventMap { "searchInputChange": string; "closeChat": void; "textClick": void; } interface HTMLWebChatHeaderElement extends Components.WebChatHeader, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLWebChatHeaderElement, ev: WebChatHeaderCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLWebChatHeaderElement, ev: WebChatHeaderCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLWebChatHeaderElement: { prototype: HTMLWebChatHeaderElement; new (): HTMLWebChatHeaderElement; }; interface HTMLWebChatRightSidebarElement extends Components.WebChatRightSidebar, HTMLStencilElement { } var HTMLWebChatRightSidebarElement: { prototype: HTMLWebChatRightSidebarElement; new (): HTMLWebChatRightSidebarElement; }; interface HTMLElementTagNameMap { "audio-bubble": HTMLAudioBubbleElement; "block-chat-list": HTMLBlockChatListElement; "chat-app": HTMLChatAppElement; "chat-document-message-bubble": HTMLChatDocumentMessageBubbleElement; "chat-footer": HTMLChatFooterElement; "chat-image-message-bubble": HTMLChatImageMessageBubbleElement; "chat-side-bar": HTMLChatSideBarElement; "chat-video-message-bubble": HTMLChatVideoMessageBubbleElement; "forward-memebers": HTMLForwardMemebersElement; "group-cast": HTMLGroupCastElement; "login-page": HTMLLoginPageElement; "member-add": HTMLMemberAddElement; "my-component": HTMLMyComponentElement; "profile-page": HTMLProfilePageElement; "reaction-container": HTMLReactionContainerElement; "signup-page": HTMLSignupPageElement; "theme-provider": HTMLThemeProviderElement; "web-chat": HTMLWebChatElement; "web-chat-body": HTMLWebChatBodyElement; "web-chat-header": HTMLWebChatHeaderElement; "web-chat-right-sidebar": HTMLWebChatRightSidebarElement; } } declare namespace LocalJSX { interface AudioBubble { "audioProgressColor"?: string; "audioUrl"?: string; "audioWaveColor"?: string; "bgColor"?: string; "borderRadius"?: string; "isDelivered"?: Boolean; "isRead"?: Boolean; "isSelf"?: boolean; "messageId"?: String; "messageType"?: number; "reactions"?: any; "showFooter"?: Boolean; "textColor"?: string; "time"?: string; "timeColor"?: String; } interface BlockChatList { "goBack"?: () => void; } interface ChatApp { "mode"?: 'light' | 'dark'; "themeObject"?: { [key: string]: string }; "themePath"?: string; } interface ChatDocumentMessageBubble { } interface ChatFooter { "allConversationList"?: any; "allMessages"?: any; "changeMessageSendingState"?: (newState: boolean) => void; "changeScrollToBottomState"?: (newState: boolean) => void; "conversationDetails"?: ConversationDetails; "handleremoveReplyMessage"?: () => void; "refetchMessages"?: () => void; "replyMessage"?: any; "selectedConversationId"?: string; "sortConversationsByLatestMessage"?: (conversations: any[]) => void; "updateAllMessages"?: (newMessages: any) => void; "updateConversationListProp"?: (updatedList: any[]) => void; "userMetaData"?: any; } interface ChatImageMessageBubble { } interface ChatSideBar { "allMessages"?: any; "conversationDetails"?: any; "conversationList"?: any; "customTypes"?: any; "filterTab"?: any; "filterTabHover"?: any; "filterTabsContainer"?: any; "handleBackButtonClick"?: Function; "handleSearchData"?: (searchTag: string) => void; "hasMoreConversations"?: boolean; "isAllChatButton"?: boolean; "isChatFilter"?: boolean; "isConversationLoading"?: Boolean; "isMqttConnected"?: boolean; "isPreloadingForFilter"?: boolean; "isSidebarHeaderLabel"?: boolean; "isSidebarHeaderSearch"?: boolean; "isTyping"?: boolean; "leofferAccountId"?: string; "onChatTileSelected"?: (event: ChatSideBarCustomEvent) => void; "onDeleteConversation"?: (conversationId: string) => void; "onGroupExited"?: (event: ChatSideBarCustomEvent) => void; "sidebarColor"?: string; "sidebarHeaderLabel"?: string; "sidebarSelectedColor"?: string; "typingConversationId"?: string; "typingUserName"?: String; "unreadConversationsCount"?: number; "userMetaData"?: any; } interface ChatVideoMessageBubble { } interface ForwardMemebers { "dialogData"?: any; } interface GroupCast { "groupCastData"?: any[]; "isLoadingMore"?: boolean; "onGroupcastScrolledToBottom"?: (event: GroupCastCustomEvent) => void; "onGroupcastTileSelected"?: (event: GroupCastCustomEvent) => void; } interface LoginPage { "onLoginSuccess"?: (event: LoginPageCustomEvent) => void; "onTrySignup"?: (event: LoginPageCustomEvent) => void; } interface MemberAdd { "dialogData"?: any; } interface MyComponent { /** * The first name */ "first"?: string; /** * The last name */ "last"?: string; /** * The middle name */ "middle"?: string; } interface ProfilePage { "closeDrawer"?: () => void; "conversationId"?: string; "defaultTheme"?: string; "getUserDetails"?: () => void; "name"?: string; "profilePhotoUrl"?: string; "toggleTheme"?: () => void; } interface ReactionContainer { "messageId"?: string; "reactions"?: any[]; "userMetaData"?: any; } interface SignupPage { "onSignupSuccess"?: (event: SignupPageCustomEvent) => void; "onTryLogin"?: (event: SignupPageCustomEvent) => void; } interface ThemeProvider { /** * Current theme mode */ "mode"?: 'light' | 'dark'; /** * Path to the CSS theme file */ "themePath"?: string; } interface WebChat { "accountId"?: string; "appSecret"?: string; "baseUrl"?: string; "containerId"?: string; "conversationId"?: string; "defaultTheme"?: string; "getPaymentsData"?: Function; "groupcastEnabled"?: boolean; "handleBackButtonClick"?: Function; "hostUrl"?: string; "isAllChatButton"?: boolean; "isChatFilter"?: boolean; "isSidebarHeaderLabel"?: boolean; "isSidebarHeaderSearch"?: boolean; "isometrikUserId"?: string; "keysetId"?: string; "leofferAccountId"?: string; "licenseKey"?: string; "name"?: string; "onConversationDetailsUpdated"?: (event: WebChatCustomEvent) => void; "onConversationNotFound"?: (event: WebChatCustomEvent) => void; "onMessageReadStatusUpdated"?: (event: WebChatCustomEvent) => void; "onUnreadMessageCountUpdated"?: (event: WebChatCustomEvent) => void; "projectId"?: string; "sidebarColor"?: string; "sidebarHeaderLabel"?: string; "sidebarSelectedColor"?: string; "themeUrl"?: string; "toggleTheme"?: () => void; "userSecret"?: string; "userToken"?: string; } interface WebChatBody { "allAttachments"?: any; "allMessages"?: any; "changeScrollToBottomState"?: (newState: boolean) => void; "changeScrollToTopState"?: (newState: boolean) => void; "conversationDetails"?: any; "conversationList"?: any; "deleteForAll"?: ({ conversationId, messageIds }) => void; "deleteForSelf"?: ({ conversationId, messageIds }) => void; "highlightedMessageId"?: string | null; "isChatClosed"?: boolean; "isChatMinimized"?: boolean; "isMessageLimitEnd"?: boolean; "isMessageSending"?: boolean; "isMessagesLoading"?: boolean; "isScrollToBottom"?: boolean; "isScrollToTop"?: boolean; "loadingMediaGallery"?: boolean; "newMessageNotification"?: { messageId: string; count: number; conversationId: string } | null; "onMediaClick"?: () => void; "onMessageReadStatusUpdated"?: (event: WebChatBodyCustomEvent) => void; "onNewMessageCountReset"?: (event: WebChatBodyCustomEvent) => void; "onReplyMessageDetails"?: (event: WebChatBodyCustomEvent) => void; "selectedConversationId"?: string; "skip"?: number; "updateAllMessages"?: (newMessages: any) => void; "updateSkip"?: () => void; "userMetaData"?: any; } interface WebChatHeader { "allAttachments"?: any; "chatBodyRef"?: HTMLWebChatBodyElement; "conversationDetails"?: ConversationDetails; "eligibleMembers"?: any[]; "getPaymentsData"?: Function; "handleCloseChat"?: () => void; "hasMoreEligibleMembers"?: boolean; "headerBgColor"?: string; "headerLastSeenColor"?: string; "headerSvgColor"?: string; "headerUsernameColor"?: string; "isBlocked"?: boolean | string; "isLoadingMessage"?: boolean; "isTyping"?: boolean; "lastSeen"?: string; "leofferAccountId"?: string; "messageAction"?: object; "onBackButtonClick"?: Function; "onClearConversation"?: () => void; "onCloseChat"?: (event: WebChatHeaderCustomEvent) => void; "onConversationCleared"?: () => void; "onSearchHandler"?: (searchText: string) => void; "onSearchInputChange"?: (event: WebChatHeaderCustomEvent) => void; "onSearchResultClick"?: (messageId: string) => void; "onTextClick"?: (event: WebChatHeaderCustomEvent) => void; "searchedMessageDetails"?: any; "selectedConversationId"?: string; "typingConversationId"?: string; "typingUserName"?: string; "userMetaData"?: any; } interface WebChatRightSidebar { "allAttachments"?: []; "allLinks"?: any; "allLinksCount"?: number; "chatBodyRef"?: HTMLWebChatBodyElement; "conversationIdFromContactinfo"?: string | null; "conversationMetaData"?: any; "eligibleMembers"?: any[]; "groupcastMembers"?: any; "handleChatSelect"?: (conversationId: string) => void; "hasMoreEligibleMembers"?: boolean; "isBlocked"?: boolean | string; "isContactInfoOpen"?: boolean; "isLoadingMessage"?: boolean; "isOpenSearchBar"?: boolean; "isProfileInfoOpen"?: boolean; "messageAction"?: { action: string; initiator: boolean }; "onSearchHandler"?: (text: string) => void; "onSearchResultClick"?: (messageId: string) => Promise; "openOwnProfile"?: () => void; "searchedMessageDetails"?: any[]; "selectedConversationId"?: string | null; "userMetaData"?: any; } interface IntrinsicElements { "audio-bubble": AudioBubble; "block-chat-list": BlockChatList; "chat-app": ChatApp; "chat-document-message-bubble": ChatDocumentMessageBubble; "chat-footer": ChatFooter; "chat-image-message-bubble": ChatImageMessageBubble; "chat-side-bar": ChatSideBar; "chat-video-message-bubble": ChatVideoMessageBubble; "forward-memebers": ForwardMemebers; "group-cast": GroupCast; "login-page": LoginPage; "member-add": MemberAdd; "my-component": MyComponent; "profile-page": ProfilePage; "reaction-container": ReactionContainer; "signup-page": SignupPage; "theme-provider": ThemeProvider; "web-chat": WebChat; "web-chat-body": WebChatBody; "web-chat-header": WebChatHeader; "web-chat-right-sidebar": WebChatRightSidebar; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "audio-bubble": LocalJSX.AudioBubble & JSXBase.HTMLAttributes; "block-chat-list": LocalJSX.BlockChatList & JSXBase.HTMLAttributes; "chat-app": LocalJSX.ChatApp & JSXBase.HTMLAttributes; "chat-document-message-bubble": LocalJSX.ChatDocumentMessageBubble & JSXBase.HTMLAttributes; "chat-footer": LocalJSX.ChatFooter & JSXBase.HTMLAttributes; "chat-image-message-bubble": LocalJSX.ChatImageMessageBubble & JSXBase.HTMLAttributes; "chat-side-bar": LocalJSX.ChatSideBar & JSXBase.HTMLAttributes; "chat-video-message-bubble": LocalJSX.ChatVideoMessageBubble & JSXBase.HTMLAttributes; "forward-memebers": LocalJSX.ForwardMemebers & JSXBase.HTMLAttributes; "group-cast": LocalJSX.GroupCast & JSXBase.HTMLAttributes; "login-page": LocalJSX.LoginPage & JSXBase.HTMLAttributes; "member-add": LocalJSX.MemberAdd & JSXBase.HTMLAttributes; "my-component": LocalJSX.MyComponent & JSXBase.HTMLAttributes; "profile-page": LocalJSX.ProfilePage & JSXBase.HTMLAttributes; "reaction-container": LocalJSX.ReactionContainer & JSXBase.HTMLAttributes; "signup-page": LocalJSX.SignupPage & JSXBase.HTMLAttributes; "theme-provider": LocalJSX.ThemeProvider & JSXBase.HTMLAttributes; "web-chat": LocalJSX.WebChat & JSXBase.HTMLAttributes; "web-chat-body": LocalJSX.WebChatBody & JSXBase.HTMLAttributes; "web-chat-header": LocalJSX.WebChatHeader & JSXBase.HTMLAttributes; "web-chat-right-sidebar": LocalJSX.WebChatRightSidebar & JSXBase.HTMLAttributes; } } }