import type { ChatRenderState } from '../../connectors/chat/connectChat'; /** * Identifies which entry point triggered the chat completion request. * Forwarded to the agent backend as the `x-algolia-referer` header and used * as a correlation tag for attribution. */ export type ChatReferer = 'prompt-suggestions' | 'ai-mode'; export type OpenChatOptions = { /** * Text to submit to the chat as a user message. Empty or whitespace-only * values open the chat without sending anything. */ message?: string; /** * Source that triggered the chat. When provided, the value is sent as the * `x-algolia-referer` header on the resulting chat completion request so * the backend can attribute the traffic to the originating entry point. */ referer?: ChatReferer; }; export declare function openChat(chatRenderState: Partial | undefined, { message, referer }?: OpenChatOptions): boolean; export declare function isChatBusy(chatRenderState: Partial | undefined): boolean;