/** * — top-level custom element that orchestrates the entire widget. * * Usage: * * * Or via JS: * const el = document.createElement("ringg-widget"); * el.config = { agentId: "xxx", xApiKey: "yyy", variables: {} }; * document.body.appendChild(el); */ import { LitElement, nothing } from "lit"; import { type RinggWidgetConfig, type EnvironmentMode } from "@ringg/core"; import "./ui/widget-trigger"; import "./ui/widget-header"; import "./ui/tab-selector"; import "./ui/action-button"; import "./ui/call-controls"; import "./ui/message-bubble"; import "./ui/feedback-screen"; import "./ui/slash-command-menu"; import "./steps/interactive-flow"; import "./steps/calendar-step"; import "./steps/form-step"; import "./steps/buttons-step"; import "./steps/confirmation-step"; import "./steps/policy-finder/policy-finder-widget"; export declare class RinggWidget extends LitElement { static styles: import("lit").CSSResult[]; /** Full config object — alternative to individual attributes. */ config: RinggWidgetConfig; /** Agent ID (attribute shorthand) */ agentId: string; /** API key (attribute shorthand) */ xApiKey: string; /** Environment mode */ mode: EnvironmentMode; private _isOpen; private _showEndCallDialog; private _initialized; private _lastMessageCount; private _adapter; private _api; private _eventBus; private _widgetState; private _theme; private _notificationAudio; private _connection; private _chat; private _transcripts; private _components; private _feedback; connectedCallback(): void; disconnectedCallback(): void; private _initialize; private _resolveConfig; private _toggle; private _close; private _minimize; private _confirmEndCall; private _cancelEndCall; private _handleStartCall; private _handleSendMessage; private _handleTabChange; private _handleFeedbackSubmit; private _handleFeedbackSkip; private _handleSlashCommand; updated(_changedProperties: Map): void; private _playNotificationSound; private _scrollToBottom; /** * Scroll lock — prevents the underlying page from scrolling when user * scrolls inside the widget messages area and reaches the boundary. */ private _handleScrollLock; private _escapeHtml; render(): import("lit").TemplateResult<1> | typeof nothing; private _renderMessage; private _renderEndCallDialog; private _renderLegalDisclaimer; } declare global { interface HTMLElementTagNameMap { "ringg-widget": RinggWidget; } } //# sourceMappingURL=ringg-widget.d.ts.map