import type { RAGDocumentIngestInput, RAGDocumentChunk, RAGIngestResponse, RAGSearchRequest, RAGSource, RAGStatusResponse } from '../../../types/ai';
type FetchLike = typeof fetch;
export type RAGClientOptions = {
    path: string;
    fetch?: FetchLike;
};
export declare const createRAGClient: (options: RAGClientOptions) => {
    ingest(chunks: RAGDocumentChunk[]): Promise<RAGIngestResponse>;
    ingestDocuments(input: RAGDocumentIngestInput): Promise<RAGIngestResponse>;
    search(input: RAGSearchRequest): Promise<RAGSource[]>;
    status(): Promise<RAGStatusResponse>;
    clearIndex(): Promise<{
        ok: boolean;
    }>;
};
export type RAGClient = ReturnType<typeof createRAGClient>;
export {};
