import type { RAGBackendsResponse, RAGChunkingStrategy, RAGContentFormat, RAGMutationResponse } from '../../../types/ai';
export declare const createRAGIndexAdmin: (path: string) => {
    backends: import("svelte/store").Writable<RAGBackendsResponse | null>;
    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?: RAGChunkingStrategy;
        };
    }) => Promise<RAGMutationResponse>;
    deleteDocument: (id: string) => Promise<RAGMutationResponse>;
    error: import("svelte/store").Writable<string | null>;
    isLoading: import("svelte/store").Writable<boolean>;
    lastMutation: import("svelte/store").Writable<RAGMutationResponse | null>;
    loadBackends: () => Promise<RAGBackendsResponse>;
    reseed: () => Promise<RAGMutationResponse>;
    reset: () => Promise<RAGMutationResponse>;
    resetState: () => void;
};
export type CreateRAGIndexAdminResult = ReturnType<typeof createRAGIndexAdmin>;
