collapseChatOverlay()
This function does the opposite of expandChatOverlay. This function will collapse the chat overlay if it is expanded. This means that the overlay will go from the normal view showing the chat messages, mdn entry, or any other screen the user is on, to just the chat bubble. You can experiment with this by clicking the button in the dev sandbox that says "Expand SDK" (to make sure it's open) then press the button that says "Collapse SDK". Here is the function API and some example usage:
/**
* Will collapse the ChatOverlay
*/
export const collapseChatOverlay = (): void;
// Example usage:
const someFunction = () => {
collapseChatOverlay();
}