import type { RAGBackendsResponse, RAGContentFormat, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "@absolutejs/ai";
export declare const useRAGIndexAdmin: (path: string) => {
    backends: RAGBackendsResponse | null;
    analyzeBackend: () => Promise<RAGMutationResponse>;
    clearIndex: () => Promise<{
        ok: boolean;
    }>;
    createDocument: (input: {
        id?: string;
        title?: string;
        source?: string;
        text: string;
        format?: RAGContentFormat;
        metadata?: Record<string, unknown>;
        chunking?: {
            maxChunkLength?: number;
            chunkOverlap?: number;
            minChunkLength?: number;
            strategy?: "paragraphs" | "sentences" | "fixed" | "source_aware";
        };
    }) => Promise<RAGMutationResponse>;
    deleteDocument: (id: string) => Promise<RAGMutationResponse>;
    error: string | null;
    isLoading: boolean;
    lastMutation: RAGMutationResponse | null;
    loadBackends: () => Promise<RAGBackendsResponse>;
    loadSyncSources: () => Promise<RAGSyncResponse>;
    rebuildNativeIndex: () => Promise<RAGMutationResponse>;
    reindexDocument: (id: string) => Promise<RAGMutationResponse>;
    reindexSource: (source: string) => Promise<RAGMutationResponse>;
    reseed: () => Promise<RAGMutationResponse>;
    reset: () => Promise<RAGMutationResponse>;
    resetState: () => void;
    syncAllSources: (options?: RAGSyncRunOptions) => Promise<{
        ok: true;
        source: import("@absolutejs/ai").RAGSyncSourceRecord;
        partial?: boolean;
    } | {
        ok: true;
        sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
        partial?: boolean;
        failedSourceIds?: string[];
        errorsBySource?: Record<string, string>;
    }>;
    syncSource: (id: string, options?: RAGSyncRunOptions) => Promise<{
        ok: true;
        source: import("@absolutejs/ai").RAGSyncSourceRecord;
        partial?: boolean;
    } | {
        ok: true;
        sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
        partial?: boolean;
        failedSourceIds?: string[];
        errorsBySource?: Record<string, string>;
    }>;
    syncSources: RAGSyncResponse | null;
};
export type UseRAGIndexAdminResult = ReturnType<typeof useRAGIndexAdmin>;
