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