@grafana/assistant
Version:
Type definitions and helper functions for Grafana Assistant
9 lines (8 loc) • 376 B
TypeScript
import { OpenAssistantProps } from './sidebar';
type AssistantHook = [boolean, ((props: OpenAssistantProps) => void) | undefined, (() => void) | undefined];
/**
* Hook to check if the assistant is available and return the open and close functions.
* @returns [isAvailable, openAssistant, closeAssistant]
*/
export declare function useAssistant(): AssistantHook;
export {};