import React, { ReactElement } from 'react'; import { ChatContextItem } from '../../context/types'; import { OpenAssistantProps } from '../../sidebar'; export interface OpenAssistantSplitButtonProps { /** Prompt to pass to the openAssistant function. */ prompt: string; /** Origin of the request that opened the assistant. */ origin: string; /** Context to pass to the openAssistant function. Optional, defaults to undefined. */ context?: ChatContextItem[]; /** Whether to automatically send the prompt. Optional, defaults to true. */ autoSend?: boolean; /** Text to display on the button. Optional, defaults to 'Chat with Assistant' */ title?: string; /** Button size, defaults to sm */ size?: 'sm' | 'md' | 'lg'; /** Function to call when the main button is clicked. Optional. */ onClick?: () => void; /** Additional menu items to show in the dropdown. Optional. */ menuItems?: ReactElement; /** Tooltip text to display on hover. Optional. */ tooltip?: string; /** Width for the dropdown/chevron segment. Accepts pixels as number or any CSS width value. */ dropdownButtonWidth?: number | string; } /** * A split button component that opens the Grafana Assistant with a dropdown for additional actions. * The gradient border wraps around both buttons as a unified control. */ export declare function OpenAssistantSplitButton(props: OpenAssistantSplitButtonProps): React.JSX.Element | null; export declare function OpenAssistantSplitButtonView({ prompt, origin, context, autoSend, title, size, onClick, menuItems, tooltip, dropdownButtonWidth, openAssistant, }: OpenAssistantSplitButtonProps & { openAssistant: (props: OpenAssistantProps) => void; }): React.JSX.Element; //# sourceMappingURL=OpenAssistantSplitButton.d.ts.map