import { Message } from "../../application/models/message.js";
import { UserEvent as UserEvent$1 } from "../../application/models/api/userEvent.js";
import { Suggestion as Suggestion$1 } from "../../application/models/api/suggestion.js";
import { askQuestionBtnClickedAtom, chatIsOpenAtom, chatOnToggleAtom, formSubmitAtom, initializedAtom, listeningToSpeechAtom, messagesAtom, pendingResponseAtom, replyEventCategoryAtom, requestFailureAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom } from "./chatState.js";
import { APP_INITIAL_START_TIME_KEY, PAGE_LOAD_OFFSET_TIME_KEY, PerfMetricsEvents, appInitialStartTimeMsAtom, hasReportedPerformanceMetricsAtom, logPerfMetricAtom, pageLoadOffsetTimeAtom, performanceMetricsAtom, resetPerformanceMetricsAtom } from "./performanceMetrics.js";
import { handleFormSubmittedAtom } from "./form.js";
import { handleSuggestionAtom } from "./suggestions.js";
import { lastAssistantMessageAtom } from "./lastMessage.js";
import { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom } from "./messageQueue.js";
import { addWidget, widgetArrayAtom } from "./renderedWidgetRefs.js";
import * as _spiffy_ai_commerce_api_client0 from "@spiffy-ai/commerce-api-client";
import * as jotai4 from "jotai";

//#region src/atoms/chat/index.d.ts
declare const chatAtom: jotai4.Atom<{
  userHasReplied: boolean;
  replyEventCategory: _spiffy_ai_commerce_api_client0.UserEventCategory;
  userQuery: string | undefined;
  suggestion: Suggestion$1 | undefined;
  askQuestionBtnClicked: boolean;
  messages: Message[][];
  userEvents: UserEvent$1[];
  suggestions: Suggestion$1[];
  suggestionsLoading: boolean;
  responseStreaming: boolean;
  isOpen: boolean;
  onToggle: null;
}>;
//#endregion
export { APP_INITIAL_START_TIME_KEY, PAGE_LOAD_OFFSET_TIME_KEY, PerfMetricsEvents, addWidget, appInitialStartTimeMsAtom, askQuestionBtnClickedAtom, chatAtom, chatIsOpenAtom, chatOnToggleAtom, clearUserEventAtom, formSubmitAtom, handleFormSubmittedAtom, handleSuggestionAtom, hasReportedPerformanceMetricsAtom, initializedAtom, lastAssistantMessageAtom, listeningToSpeechAtom, logPerfMetricAtom, messagesAtom, pageLoadOffsetTimeAtom, pendingResponseAtom, performanceMetricsAtom, processUserEventAtom, queueUserEventAtom, replyEventCategoryAtom, requestFailureAtom, resetPerformanceMetricsAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventQueueAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom, userQueueEventCountAtom, widgetArrayAtom };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvY2hhdC9pbmRleC5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2hhdFN0YXRlJztcbmV4cG9ydCAqIGZyb20gJy4vcGVyZm9ybWFuY2VNZXRyaWNzJztcbmV4cG9ydCAqIGZyb20gJy4vZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3N1Z2dlc3Rpb25zJztcbmV4cG9ydCAqIGZyb20gJy4vbGFzdE1lc3NhZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9tZXNzYWdlUXVldWUnO1xuZXhwb3J0ICogZnJvbSAnLi9yZW5kZXJlZFdpZGdldFJlZnMnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgY2hhdEF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208e1xuICAgIHVzZXJIYXNSZXBsaWVkOiBib29sZWFuO1xuICAgIHJlcGx5RXZlbnRDYXRlZ29yeTogaW1wb3J0KFwiQHNwaWZmeS1haS9jb21tZXJjZS1hcGktY2xpZW50XCIpLlVzZXJFdmVudENhdGVnb3J5O1xuICAgIHVzZXJRdWVyeTogc3RyaW5nIHwgdW5kZWZpbmVkO1xuICAgIHN1Z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