import type { AiSearchConversationItem, ContentSegment } from '@redocly/theme/core/types'; import type { AiSearchOptions, SearchResource, ToolCallState } from '../../types/ai-search'; import { AiSearchError } from '@redocly/theme/core/constants'; type UseAiSearchReturn = { askQuestion: (question: string, history?: AiSearchConversationItem[]) => void; isGeneratingResponse: boolean; response: string | undefined; resources: SearchResource[]; question: string; error: AiSearchError | null; clearConversation: () => void; conversation: AiSearchConversationItem[]; setConversation: React.Dispatch>; toolCalls: ToolCallState[]; contentSegments: ContentSegment[]; }; export declare function useAiSearch(options?: AiSearchOptions): UseAiSearchReturn; export {}; //# sourceMappingURL=useAiSearch.d.ts.map