import React from 'react'; import { ChatContextItem } from '../../context/types'; import { OpenAssistantProps } from '../../sidebar'; export interface AssistantPromptCardProps { /** Origin of the request for analytics tracking. Should be a structured string using forward slashes. */ origin: string; /** Context items passed to the assistant on submit. Created with `createAssistantContextItem`. */ context?: ChatContextItem[]; /** Assistant mode (e.g. 'dashboarding'). Defaults to 'assistant'. */ mode?: string; /** Placeholder text for the input. */ placeholder?: string; /** Example prompts to cycle through as animated placeholder text. Pass an empty array to disable. */ examplePrompts?: string[]; /** Called when the card should close (Escape key, close button). */ onClose?: () => void; /** Called after a prompt is submitted, receives the prompt string. */ onSubmit?: (prompt: string) => void; /** Called when the user clicks the card body. */ onClick?: () => void; /** Whether the card border is animated. Defaults to true. */ animated?: boolean; /** Extra CSS class for the root element. */ className?: string; } /** * A prompt card component that opens the Grafana Assistant with a user-typed prompt and context. * Renders nothing if the assistant is not available. Positioning is the consumer's responsibility. */ export declare function AssistantPromptCard(props: AssistantPromptCardProps): React.JSX.Element | null; export interface AssistantPromptCardViewProps extends AssistantPromptCardProps { openAssistant: (props: OpenAssistantProps) => void; } export declare function AssistantPromptCardView({ origin, context, mode, placeholder, examplePrompts, animated, onClose, onSubmit, onClick, className, openAssistant, }: AssistantPromptCardViewProps): React.JSX.Element; //# sourceMappingURL=AssistantPromptCard.d.ts.map