import { P as PersistedState, C as ChatContainerProps, B as BusEventViewPreChange, a as ChatInstance, b as BusEventViewChange } from './serverEntry-8eaazD-Z.js'; export { A as AdditionalDataToAgent, c as AgentAvailability, d as AudioItem, e as AutoScrollOptions, f as BaseGenericItem, g as BaseMessageInput, h as BusEvent, i as BusEventChatReady, j as BusEventChunkUserDefinedResponse, k as BusEventClosePanelButtonClicked, l as BusEventCustomFooterSlot, m as BusEventCustomPanelClose, n as BusEventCustomPanelOpen, o as BusEventCustomPanelPreClose, p as BusEventCustomPanelPreOpen, q as BusEventFeedback, r as BusEventHeaderMenuClick, s as BusEventHistoryBegin, t as BusEventHistoryEnd, u as BusEventHumanAgentAreAnyAgentsOnline, v as BusEventHumanAgentEndChat, w as BusEventHumanAgentPreEndChat, x as BusEventHumanAgentPreReceive, y as BusEventHumanAgentPreSend, z as BusEventHumanAgentPreStartChat, D as BusEventHumanAgentReceive, E as BusEventHumanAgentSend, F as BusEventMessageItemCustom, G as BusEventPreReceive, H as BusEventPreReset, I as BusEventPreSend, J as BusEventReceive, K as BusEventReset, L as BusEventSend, M as BusEventStateChange, N as BusEventType, O as BusEventUserDefinedResponse, Q as BusEventWorkspaceClose, R as BusEventWorkspaceOpen, S as BusEventWorkspacePreClose, T as BusEventWorkspacePreOpen, U as ButtonItem, V as ButtonItemKind, W as ButtonItemType, X as CancellationReason, Y as CarbonTheme, Z as CardItem, _ as CarouselItem, $ as CatastrophicErrorPanelState, a0 as CdsAiChatContainerAttributes, a1 as CdsAiChatCustomElementAttributes, a2 as ChainOfThoughtStep, a3 as ChangeFunction, a4 as ChatContainerPropsMarkdown, a5 as ChatInstanceInput, a6 as ChatInstanceMessaging, a7 as ChatInstanceServiceDeskActions, a8 as ChatShortcutConfig, a9 as Chunk, aa as CompleteItemChunk, ab as ConnectToHumanAgentItem, ac as ConnectToHumanAgentItemTransferInfo, ad as ConnectingErrorInfo, ae as ConversationalSearchItem, af as ConversationalSearchItemCitation, ag as CornersType, ah as CustomMarkdownRenderers, ai as CustomMenuOption, aj as CustomPanelConfigOptions, ak as CustomPanelInstance, al as CustomPanelOpenOptions, am as CustomPanels, an as CustomSendMessageOptions, ao as DateItem, ap as DeepPartial, aq as DefaultCustomPanelConfigOptions, ar as DisclaimerPublicConfig, as as DisconnectedErrorInfo, at as EndChatInfo, au as ErrorType, av as EventBusHandler, aw as EventHandlers, ax as EventInput, ay as EventInputData, az as ExternalFileReference, aA as FeedbackInteractionType, aB as FileFieldValue, aC as FileStatusValue, aD as FileUpload, aE as FileUploadCapabilities, aF as FinalResponseChunk, aG as GenericItem, aH as GenericItemCustomFooterSlotOptions, aI as GenericItemMessageFeedbackCategories, aJ as GenericItemMessageFeedbackOptions, aK as GenericItemMessageOptions, aL as GridItem, aM as HeaderConfig, aN as HeaderMenuClickType, aO as HistoryConfig, aP as HistoryItem, aQ as HomeScreenConfig, aR as HomeScreenStarterButton, aS as HomeScreenStarterButtons, aT as HomeScreenState, aU as HorizontalCellAlignment, aV as HumanAgentMessageType, aW as HumanAgentsOnlineStatus, aX as IFrameItem, aY as IFrameItemDisplayOption, aZ as ImageItem, a_ as IncreaseOrDecrease, a$ as InlineErrorItem, b0 as InlineFile, b1 as InputConfig, b2 as ItemStreamingMetadata, b3 as KeyboardShortcuts, b4 as LanguagePack, b5 as LauncherCallToActionConfig, b6 as LauncherConfig, b7 as LayoutConfig, b8 as LayoutCustomProperties, b9 as MarkdownCustomRenderers, ba as MarkdownItPlugin, bb as MarkdownRendererCodeBlockArgs, bc as MarkdownRendererCodeBlockData, bd as MarkdownRendererTableArgs, be as MarkdownRendererTableData, bf as MediaFileAccessibility, bg as MediaItem, bh as MediaItemDimensions, bi as MediaSubtitleTrack, bj as MediaTranscript, bk as Message, bl as MessageErrorState, bm as MessageHistoryFeedback, bn as MessageInput, bo as MessageInputType, bp as MessageItemPanelInfo, bq as MessageOutput, br as MessageRequest, bs as MessageRequestHistory, bt as MessageResponse, bu as MessageResponseHistory, bv as MessageResponseOptions, bw as MessageResponseTypes, bx as MessageSendSource, by as MessageState, bz as MinimizeButtonIconType, bA as ObjectMap, bB as OnErrorData, bC as OnErrorType, bD as OptionItem, bE as OptionItemPreference, bF as PageObjectId, bG as PanelType, bH as PartialItemChunk, bI as PartialItemChunkWithId, bJ as PartialOrCompleteItemChunk, bK as PartialResponse, bL as PauseItem, bM as PerCornerConfig, bN as PersistedHumanAgentState, bO as PreviewCardItem, bP as PublicChatHumanAgentState, bQ as PublicChatState, bR as PublicConfig, bS as PublicConfigMarkdown, bT as PublicConfigMessaging, bU as PublicCustomPanelsState, bV as PublicDefaultCustomPanelState, bW as PublicHistoryPanelState, bX as PublicInputState, bY as PublicWorkspaceCustomPanelState, bZ as ReasoningStep, b_ as ReasoningStepOpenState, b$ as ReasoningSteps, c0 as RenderCustomMessageFooter, c1 as RenderCustomMessageFooterState, c2 as RenderUserDefinedResponse, c3 as RenderUserDefinedState, c4 as RenderWriteableElementResponse, c5 as ResolvedCornerConfig, c6 as ResponseUserProfile, c7 as ScreenShareState, c8 as SearchResult, c9 as SendOptions, ca as ServiceDesk, cb as ServiceDeskCallback, cc as ServiceDeskCapabilities, cd as ServiceDeskErrorInfo, ce as ServiceDeskFactoryParameters, cf as ServiceDeskPublicConfig, cg as SingleOption, ch as StartChatOptions, ci as StreamChunk, cj as StructuredData, ck as StructuredField, cl as StructuredFieldType, cm as StructuredFieldValue, cn as SystemMessageItem, co as SystemMessageVariant, cp as TestId, cq as TextItem, cr as TokenTree, cs as TypeAndHandler, ct as UploadConfig, cu as UpsertMessageUpdater, cv as UserDefinedItem, cw as UserMessageErrorInfo, cx as UserType, cy as VerticalCellAlignment, cz as VideoItem, cA as ViewChangeReason, cB as ViewState, cC as ViewType, cD as WCCustomMarkdownRenderers, cE as WCMarkdown, cF as WCRenderCustomMessageFooter, cG as WCRenderUserDefinedResponse, cH as WidthOptions, cI as WithBodyAndFooter, cJ as WithWidthOptions, cK as WorkspaceCustomPanelConfigOptions, cL as WriteableElementName, cM as WriteableElements, cN as enLanguagePack, cO as loadAllLazyDeps } from './serverEntry-8eaazD-Z.js'; import React, { HTMLAttributes } from 'react'; export { ChainOfThoughtStepStatus } from '@carbon/ai-chat-components/es/components/chain-of-thought/defs.js'; import '@carbon/web-components/es/components/button/defs.js'; import '@carbon/ai-chat-components/es/react/chat-button.js'; import '@carbon/ai-chat-components/es/react/toolbar.js'; import '@carbon/ai-chat-components/es/components/markdown/index.js'; import 'lit-html'; import 'lit'; import 'react-dom/client'; /** * Reads and validates the Carbon AI Chat session from sessionStorage. * Returns null if no session exists, if the data is corrupt, or if the * session was written by a different version of the library (version mismatch). * * Pass the same namespace value as {@link PublicConfig.namespace} (if any). * * @category Utilities * * @example * const session = readCarbonChatSession(); * const wasOpen = session?.viewState.mainWindow === true; * * @example * // With a namespace matching PublicConfig.namespace * const session = readCarbonChatSession("myapp"); * const wasOpen = session?.viewState.mainWindow === true; */ declare function readCarbonChatSession(namespace?: string): PersistedState | null; /** * The ChatContainer controls rendering the React application into the shadow DOM of the cds-aichat-react web component. * It also injects the writeable element and user_defined response slots into said web component. * * @category React */ declare function ChatContainer(props: ChatContainerProps & Omit, keyof ChatContainerProps>): React.JSX.Element; /** * Properties for the ChatContainer React component. This interface extends * {@link ChatContainerProps} and {@link PublicConfig} with additional component-specific props, flattening all * config properties as top-level props for better TypeScript IntelliSense. * * @category React */ interface ChatCustomElementProps extends ChatContainerProps { /** * A CSS class name that will be added to the custom element. This class must define the size of the * your custom element (width and height or using logical inline-size/block-size). * * You can make use of onViewPreChange and/or onViewChange to mutate this className value so have open/close animations. * * By default, the chat will just set the chat shell to a 0x0 size and mark everything but the launcher (is you are using it) * as display: none; if the chat is set to closed. */ className: string; /** * An optional id that will be added to the custom element. */ id?: string; /** * Called before a view change (chat opening/closing). The chat will hide the chat shell inside your custom element * to prevent invisible keyboard stops when the view change is *complete*. * * Use this callback to update your className value *before* the view change happens if you want to add any open/close * animations to your custom element before the chat shell inner contents are hidden. It is async and so you can * tie it to native the AnimationEvent and only return when your animations have completed. * * A common pattern is to use this for when the chat is closing and to use onViewChange for when the chat opens. * * Note that this function can only be provided before Carbon AI Chat is loaded as it is registered before the * chat renders. After Carbon AI Chat is loaded, the callback will not be updated. */ onViewPreChange?: (event: BusEventViewPreChange, instance: ChatInstance) => Promise | void; /** * Called when the chat view change is complete. If no callback is provided here, the default behavior will be to set * the chat shell to 0x0 size and set all inner contents aside from the launcher, if you are using it, to display: none. * The inner contents of the chat shell (aside from the launcher if you are using it) are always set to display: none * regardless of what is configured with this callback to prevent invisible tab stops and screen reader issues. * * Use this callback to update your className value when the chat has finished being opened or closed. * * You can provide a different callback here if you want custom animation behavior when the chat is opened or closed. * The animation behavior defined here will run in concert with the chat inside your custom container being hidden. * * If you want to run animations before the inner contents of the chat shell is shrunk and the inner contents are hidden, * make use of onViewPreChange. * * A common pattern is to use this for when the chat is opening and to use onViewPreChange for when the chat closes. * * Note that this function can only be provided before Carbon AI Chat is loaded as it is registered before the * chat renders. After Carbon AI Chat is loaded, the callback will not be updated. */ onViewChange?: (event: BusEventViewChange, instance: ChatInstance) => void; } /** * This is the React component for people injecting a Carbon AI Chat with a custom element. * * It provides said element any class or id defined on itself for styling. It then calls ChatContainer with the custom * element passed in as a property to be used instead of generating an element with the default properties for a * floating chat. * * @category React */ declare function ChatCustomElement(props: ChatCustomElementProps & Omit, keyof ChatCustomElementProps>): React.JSX.Element; export { BusEventViewChange, BusEventViewPreChange, ChatContainer, ChatContainerProps, ChatCustomElement, ChatInstance, PersistedState, readCarbonChatSession }; export type { ChatCustomElementProps };