import { type DashboardSelectorEvaluator } from "@gooddata/sdk-ui-dashboard"; import { type GenAIAssistantMode, type LinkHandlerEvent } from "./ConfigContext.js"; import { type IGenAIAssistantSlots } from "./customized/types.js"; import { type GenAiStoreProps } from "./GenAiStore.js"; /** * Properties for the GenAIAssistant component. * @public */ export type GenAIAssistantProps = Omit & { /** * The locale to use for the chat UI. */ locale?: string; /** * When provided, references to the metadata objects will be rendered as clickable links. * Otherwise, the metadata objects will be rendered as plain text (using object title). */ onLinkClick?: (linkClickEvent: LinkHandlerEvent) => string | undefined; /** * When true, allows the chat to render links that open in a new tab or window. This * is handy only when embedding the chat in same environment where GD platform is running because * chat always create full URLs to the links. */ allowNativeLinks?: boolean; /** * This will disable manage permissions for the user even if the user has them defined. */ disableManage?: boolean; /** * This will disable analyze permissions for the user even if the user has them defined. */ disableAnalyze?: boolean; /** * This will disable full control permissions for the user even if the user has them defined. */ disableFullControl?: boolean; /** * Selector that is used to automatically build ambient context for the chat. * If its provided, the chat will automatically load the dashboards and related data * from it. */ dashboardSelector?: DashboardSelectorEvaluator; /** * Customizations for the Gen AI assistant. */ slots?: IGenAIAssistantSlots; /** * Additional class name applied to the root element. */ className?: string; /** * Display mode of the assistant. Adapts the internal layout to a narrow or to a wide container; * the assistant always fills its parent element, so this does not resize it. * On small screens the fullscreen layout is always used. */ mode?: GenAIAssistantMode; /** * Called when the display mode changes on its own, e.g. after `setFullscreenAction` is dispatched, * so that the embedding application can keep its own chrome in sync. */ onModeChange?: (mode: GenAIAssistantMode) => void; }; /** * Properties for the GenAIChat component. * @deprecated This is an old name. Use {@link GenAIAssistantProps} instead. * @public */ export type GenAIChatProps = GenAIAssistantProps; /** * UI component that renders the Gen AI assistant. * @public */ export declare function GenAIAssistant(props: GenAIAssistantProps): import("react/jsx-runtime").JSX.Element; /** * UI component that renders the Gen AI chat. * @deprecated This is an old name. Use {@link GenAIAssistant} instead. * @public */ export declare const GenAIChat: typeof GenAIAssistant; //# sourceMappingURL=GenAIChat.d.ts.map