UNPKG

@redocly/theme

Version:

Shared UI components lib

20 lines (19 loc) 859 B
import React from 'react'; import type { JSX } from 'react'; import { AiSearchError } from '../../core/constants'; import { AiSearchConversationItem } from '../../core/types'; export type SearchAiDialogProps = { response: string | undefined; isGeneratingResponse: boolean; error: AiSearchError | null; resources: { url: string; title: string; }[]; initialMessage?: string; className?: string; conversation: AiSearchConversationItem[]; setConversation: React.Dispatch<React.SetStateAction<AiSearchConversationItem[]>>; onMessageSent: (message: string, history?: AiSearchConversationItem[]) => void; }; export declare function SearchAiDialog({ isGeneratingResponse, response, initialMessage, error, resources, onMessageSent, className, conversation, setConversation, }: SearchAiDialogProps): JSX.Element;