import type { AiSearchConversationItem, SearchFilterItem } from '@redocly/theme/core/types';
import { AiSearchError } from '@redocly/theme/core/constants';
type AiSearchOptions = {
    filter?: SearchFilterItem[];
};
export declare function useAiSearch(options?: AiSearchOptions): {
    askQuestion: (question: string, history?: AiSearchConversationItem[]) => Promise<void>;
    isGeneratingResponse: boolean;
    response: string | undefined;
    resources: {
        url: string;
        title: string;
    }[];
    question: string;
    error: AiSearchError | null;
    clearConversation: () => void;
    conversation: AiSearchConversationItem[];
    setConversation: import("react").Dispatch<import("react").SetStateAction<AiSearchConversationItem[]>>;
};
export {};
//# sourceMappingURL=useAiSearch.d.ts.map