import 'rollup-plugin-inject-process-env'; import { ClientErrorReporter } from "@xapp/chat-widget-core"; import { WidgetEnv } from "@xapp/stentor-chat-widget"; /** * Set by rollup from package.json at build time; absent in tests and in unbundled code. Read * through `unknown`: rollup replaces the expression with a string literal, and TypeScript * refuses `"1.2.3" || undefined` as always truthy (TS2872). */ export declare function chatWidgetVersion(): string | undefined; /** * Starts reporting the chat widget's own uncaught errors and unhandled rejections to the widget * events endpoint (WIDGET_CHAT_ERROR), under the embed key, with the visitor's chat identity. * Only errors whose file or stack is our bundle are reported; the host page's scripts are not * ours to watch. One reporter per page, a handful of distinct errors per page load. Never throws. */ export declare function startChatErrorReporting(config: WidgetEnv): ClientErrorReporter;