import { ShopifyCart } from '../model/shopify-cart/shopify-cart.model'; export interface ShopifyContext { /** * {@link https://shopify.dev/docs/themes/liquid/reference/objects/shop#shop-permanent_domain Shopify permanent domain} that contains `.myshopify.com` */ readonly domain: string; /** * {@link https://shopify.dev/docs/themes/liquid/reference/objects/customer#customer-id Shopify customer id} */ readonly customerId?: number; /** * {@link https://shopify.dev/docs/themes/liquid/reference/objects/cart Shopify Cart} of the Shopify user currently using the chat. * The cart details will be displayed in the sidebar of the ticket on the helpdesk application. */ readonly cart?: ShopifyCart; } export interface ChatActions { /** * Open chat popup */ readonly open: () => void; /** * Close chat popup */ readonly close: () => void; /** * Set user email associated to the current chat conversation */ readonly setUserEmail: (email: string) => void; /** * Set {@link ShopifyContext Shopify context}. * This is useful when using Gorgias chat widget in a headless Shopify. */ readonly setShopifyContext: (context: ShopifyContext) => void; /** * Remove all chat data from localStorage */ readonly clear: () => void; } /** * Get available chat {@link ChatActions actions}. * Should be used only after {@link useChat}. */ export declare const useChatActions: () => ChatActions;