import { ChatContextItem } from './context/types'; export type OpenAssistantProps = { origin: string; prompt?: string; context?: ChatContextItem[]; autoSend?: boolean; /** Mode to open the assistant in. Built-in modes: 'assistant', 'investigation', 'dashboarding'. Can also be a backend agent ID. */ mode?: string; }; /** * Open the Grafana Assistant sidebar with a given initial prompt. * * @param props - The props to pass to the assistant. * @param props.origin - The origin of the request that opened the assistant. This is used to track the source of the request. Should be a structured string using forward slashes, with the first part as a namespace. Examples: 'grafana-datasources/prometheus/query-builder', 'grafana-slo-app/slo-editor-overview', 'grafana/trace-view-analyzer`. * @param props.prompt - The initial prompt to display in the assistant. * @param props.context - The initial context to display in the assistant. Created with `createContext`. * @param props.autoSend - Whether to automatically send the initial prompt. When true, opens a chat and sends the initial prompt right away. When false, opens chat and updates user message without sending it. Defaults to true. * @param props.mode - The mode to open the assistant in. Built-in modes: 'assistant', 'investigation', 'dashboarding'. Can also be a backend agent ID. Defaults to 'assistant'. */ export declare function openAssistant(props: OpenAssistantProps): void; /** * Close the Grafana Assistant sidebar. */ export declare function closeAssistant(): void; export declare function toggleAssistant(props: OpenAssistantProps): void; //# sourceMappingURL=sidebar.d.ts.map