| 1 | declare global { |
| 2 | interface Window { |
| 3 | chatwootSettings?: { |
| 4 | hideMessageBubble?: boolean; |
| 5 | showUnreadMessagesDialog?: boolean; |
| 6 | position?: "left" | "right"; |
| 7 | locale?: string; |
| 8 | useBrowserLanguage?: boolean; |
| 9 | type?: "standard" | "expanded_bubble"; |
| 10 | darkMode?: "light" | "auto"; |
| 11 | launcherTitle?: string; |
| 12 | showPopoutButton?: boolean; |
| 13 | baseDomain?: string; |
| 14 | }; |
| 15 | chatwootSDK?: { |
| 16 | run: (config: { websiteToken: string; baseUrl: string }) => void; |
| 17 | }; |
| 18 | $chatwoot?: { |
| 19 | setUser: ( |
| 20 | identifier: string, |
| 21 | userAttributes: Record<string, any>, |
| 22 | ) => void; |
| 23 | setCustomAttributes: (attributes: Record<string, any>) => void; |
| 24 | reset: () => void; |
| 25 | toggle: (state?: "open" | "close") => void; |
| 26 | popoutChatWindow: () => void; |
| 27 | toggleBubbleVisibility: (visibility: "show" | "hide") => void; |
| 28 | setLocale: (locale: string) => void; |
| 29 | setLabel: (label: string) => void; |
| 30 | removeLabel: (label: string) => void; |
| 31 | }; |
| 32 | chatwootSDKReady?: () => void; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | export {}; |
nothing calls this directly
no outgoing calls
no test coverage detected