import type { RAGSearchRequest, RAGSource } from "@absolutejs/ai";
import type { RAGDetailedSearchResponse } from "../../types/client";
type SearchRequest = Omit<RAGSearchRequest, "includeTrace">;
export declare const useRAGSearch: (path: string) => {
    error: string | null;
    hasSearched: boolean;
    isSearching: boolean;
    lastRequest: RAGSearchRequest | null;
    reset: () => void;
    results: RAGSource[];
    search: (input: SearchRequest) => Promise<RAGSource[]>;
    searchWithTrace: (input: SearchRequest) => Promise<RAGDetailedSearchResponse>;
    setResults: import("react").Dispatch<import("react").SetStateAction<RAGSource[]>>;
    trace: import("@absolutejs/ai").RAGRetrievalTrace | undefined;
};
export type UseRAGSearchResult = ReturnType<typeof useRAGSearch>;
export {};
