import type { RAGBackendsResponse, RAGDocumentChunksResponse, RAGDocumentIngestInput, RAGDocumentChunk, RAGDocumentsResponse, RAGIngestResponse, RAGMutationResponse, RAGSearchRequest, RAGSource, RAGStatusResponse } from '../../../types/ai';
type FetchLike = typeof fetch;
export type RAGClientOptions = {
    path: string;
    fetch?: FetchLike;
};
export declare const createRAGClient: (options: RAGClientOptions) => {
    backends(): Promise<RAGBackendsResponse>;
    clearIndex(): Promise<{
        ok: boolean;
    }>;
    createDocument(input: RAGDocumentIngestInput["documents"][number]): Promise<RAGMutationResponse>;
    deleteDocument(id: string): Promise<RAGMutationResponse>;
    documentChunks(id: string): Promise<RAGDocumentChunksResponse>;
    documents(kind?: string): Promise<RAGDocumentsResponse>;
    ingest(chunks: RAGDocumentChunk[]): Promise<RAGIngestResponse>;
    ingestDocuments(input: RAGDocumentIngestInput): Promise<RAGIngestResponse>;
    reseed(): Promise<RAGMutationResponse>;
    reset(): Promise<RAGMutationResponse>;
    search(input: RAGSearchRequest): Promise<RAGSource[]>;
    status(): Promise<RAGStatusResponse>;
};
export type RAGClient = ReturnType<typeof createRAGClient>;
export {};
