import 'rollup-plugin-inject-process-env'; import { WidgetEnv } from "@xapp/stentor-chat-widget"; interface LoadIdentity { sessionId?: string; userId: string; } /** A user id in agent-server's own format (`usr_` + base-36 time + 16 hex), which it adopts for a new visitor. */ export declare function generateAgentUserId(): string; /** * Who this page view is, as the chat's own events will report them: the agent-server identity * for MCP chat, the stored chat session otherwise. Shared by the load event and the error reports. */ export declare function chatIdentity(config: WidgetEnv): LoadIdentity; /** * On widget start: detect an AI browsing agent, advertise the tenant's MCP server, show the * (opt-in) agent notice, register the (opt-in) WebMCP site tools, and report the page load. A * disabled widget still reports its load - the script was fetched either way - but advertises * nothing. Never throws, never blocks. */ export declare function startChatAgentDiscovery(config: WidgetEnv): void; export {};