export type CreateRAGOptions = {
    autoLoadOps?: boolean;
    autoLoadStatus?: boolean;
    conversationId?: string;
    streamPath?: string;
};
export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
    chunkPreview: {
        activeChunkId: import("svelte/store").Writable<string | null>;
        activeSectionDiagnostic: import("svelte/store").Readable<import("@absolutejs/ai").RAGSectionRetrievalDiagnostic | null>;
        clear: () => void;
        chunkGraph: import("svelte/store").Readable<import("@absolutejs/ai").RAGChunkGraph | null>;
        error: import("svelte/store").Writable<string | null>;
        inspect: (id: string) => Promise<{
            ok: true;
        } & import("@absolutejs/ai").RAGDocumentChunkPreview>;
        isLoading: import("svelte/store").Writable<boolean>;
        navigation: import("svelte/store").Readable<import("@absolutejs/ai").RAGChunkGraphNavigation | null>;
        preview: import("svelte/store").Writable<import("@absolutejs/ai").RAGDocumentChunkPreview | null>;
        sectionDiagnostics: import("svelte/store").Readable<import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[]>;
        selectChildSection: (sectionId: string) => void;
        selectChunk: (id: string | null) => void;
        selectParentSection: () => void;
        selectSiblingSection: (sectionId: string) => void;
    };
    citations: {
        citationReferenceMap: import("svelte/store").Readable<import("@absolutejs/ai").RAGCitationReferenceMap>;
        citations: import("svelte/store").Readable<import("@absolutejs/ai").RAGCitation[]>;
        hasCitations: import("svelte/store").Readable<boolean>;
        sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
        sourceSummaries: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceSummary[]>;
    };
    documents: {
        documents: import("svelte/store").Writable<import("@absolutejs/ai").RAGIndexedDocument[]>;
        error: import("svelte/store").Writable<string | null>;
        isLoading: import("svelte/store").Writable<boolean>;
        lastResponse: import("svelte/store").Writable<import("@absolutejs/ai").RAGDocumentsResponse | null>;
        load: (kind?: string) => Promise<import("@absolutejs/ai").RAGDocumentsResponse>;
        reset: () => void;
    };
    evaluate: {
        clearRuns: () => void;
        error: import("svelte/store").Writable<string | null>;
        evaluate: (input: import("@absolutejs/ai").RAGEvaluationInput) => Promise<import("@absolutejs/ai").RAGEvaluationResponse>;
        isEvaluating: import("svelte/store").Writable<boolean>;
        lastRequest: import("svelte/store").Writable<import("@absolutejs/ai").RAGEvaluationInput | null>;
        lastResponse: import("svelte/store").Writable<import("@absolutejs/ai").RAGEvaluationResponse | null>;
        leaderboard: import("svelte/store").Readable<import("@absolutejs/ai").RAGEvaluationLeaderboardEntry[]>;
        removeSuite: (id: string) => void;
        reset: () => void;
        runSuite: (suite: import("@absolutejs/ai").RAGEvaluationSuite, overrides?: Partial<import("@absolutejs/ai").RAGEvaluationInput>) => Promise<{
            caseTraceSnapshots: import("@absolutejs/ai").RAGEvaluationCaseTraceSnapshot[] | undefined;
            elapsedMs: number;
            finishedAt: number;
            id: `${string}-${string}-${string}-${string}-${string}`;
            label: string;
            metadata: Record<string, unknown> | undefined;
            response: import("@absolutejs/ai").RAGEvaluationResponse;
            startedAt: number;
            suiteId: string;
            traceSummary: import("@absolutejs/ai").RAGRetrievalTraceComparisonSummary | undefined;
        }>;
        saveSuite: (suite: import("@absolutejs/ai").RAGEvaluationSuite) => import("@absolutejs/ai").RAGEvaluationSuite;
        suiteRuns: import("svelte/store").Writable<import("@absolutejs/ai").RAGEvaluationSuiteRun[]>;
        suites: import("svelte/store").Writable<import("@absolutejs/ai").RAGEvaluationSuite[]>;
    };
    grounding: {
        coverage: import("svelte/store").Readable<"partial" | "grounded" | "ungrounded">;
        groundedAnswer: import("svelte/store").Readable<import("@absolutejs/ai").RAGGroundedAnswer>;
        hasCitations: import("svelte/store").Readable<boolean>;
        hasGrounding: import("svelte/store").Readable<boolean>;
        references: import("svelte/store").Readable<import("@absolutejs/ai").RAGGroundingReference[]>;
        ungroundedReferenceNumbers: import("svelte/store").Readable<number[]>;
    };
    index: {
        backends: import("svelte/store").Writable<import("@absolutejs/ai").RAGBackendsResponse | null>;
        analyzeBackend: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        clearIndex: () => Promise<{
            ok: boolean;
        }>;
        createDocument: (input: {
            id?: string;
            title?: string;
            source?: string;
            text: string;
            format?: import("@absolutejs/ai").RAGContentFormat;
            metadata?: Record<string, unknown>;
            chunking?: {
                maxChunkLength?: number;
                chunkOverlap?: number;
                minChunkLength?: number;
                strategy?: import("@absolutejs/ai").RAGChunkingStrategy;
            };
        }) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        deleteDocument: (id: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        error: import("svelte/store").Writable<string | null>;
        isLoading: import("svelte/store").Writable<boolean>;
        lastMutation: import("svelte/store").Writable<import("@absolutejs/ai").RAGMutationResponse | null>;
        loadBackends: () => Promise<import("@absolutejs/ai").RAGBackendsResponse>;
        loadSyncSources: () => Promise<import("@absolutejs/ai").RAGSyncResponse>;
        rebuildNativeIndex: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        reindexDocument: (id: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        reindexSource: (source: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        reseed: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        reset: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
        resetState: () => void;
        syncAllSources: (options?: import("@absolutejs/ai").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?: import("@absolutejs/ai").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: import("svelte/store").Writable<import("@absolutejs/ai").RAGSyncResponse | null>;
    };
    ingest: {
        clearIndex: () => Promise<{
            ok: boolean;
        }>;
        error: import("svelte/store").Writable<string | null>;
        ingest: (chunks: import("@absolutejs/ai").RAGDocumentChunk[]) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
        ingestChunks: (chunks: import("@absolutejs/ai").RAGDocumentChunk[]) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
        ingestDocuments: (input: import("@absolutejs/ai").RAGDocumentIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
        ingestUploads: (input: import("@absolutejs/ai").RAGDocumentUploadIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
        ingestUrls: (input: import("@absolutejs/ai").RAGDocumentUrlIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
        isIngesting: import("svelte/store").Writable<boolean>;
        lastDocumentCount: import("svelte/store").Writable<number | null>;
        lastIngestCount: import("svelte/store").Writable<number | null>;
        lastResponse: import("svelte/store").Writable<import("@absolutejs/ai").RAGIngestResponse | null>;
        reset: () => void;
    };
    ops: {
        admin: import("svelte/store").Writable<import("@absolutejs/ai").RAGAdminCapabilities | undefined>;
        adminActions: import("svelte/store").Writable<import("@absolutejs/ai").RAGAdminActionRecord[]>;
        adminJobs: import("svelte/store").Writable<import("@absolutejs/ai").RAGAdminJobRecord[]>;
        capabilities: import("svelte/store").Writable<import("@absolutejs/ai").RAGBackendCapabilities | undefined>;
        documents: import("svelte/store").Writable<import("@absolutejs/ai").RAGDocumentSummary | undefined>;
        error: import("svelte/store").Writable<string | null>;
        health: import("svelte/store").Writable<import("@absolutejs/ai").RAGCorpusHealth | undefined>;
        ingestJobs: import("svelte/store").Writable<import("@absolutejs/ai").RAGIngestJobRecord[]>;
        isLoading: import("svelte/store").Writable<boolean>;
        maintenance: import("svelte/store").Writable<import("@absolutejs/ai").RAGBackendMaintenanceSummary | undefined>;
        operations: import("svelte/store").Writable<import("@absolutejs/ai").RAGOperationsResponse | undefined>;
        readiness: import("svelte/store").Writable<import("@absolutejs/ai").RAGExtractorReadiness | undefined>;
        refresh: () => Promise<import("@absolutejs/ai").RAGOperationsResponse>;
        reset: () => void;
        status: import("svelte/store").Writable<import("@absolutejs/ai").RAGVectorStoreStatus | undefined>;
        syncSources: import("svelte/store").Writable<import("@absolutejs/ai").RAGSyncSourceRecord[]>;
    };
    search: {
        error: import("svelte/store").Writable<string | null>;
        hasSearched: import("svelte/store").Writable<boolean>;
        isSearching: import("svelte/store").Writable<boolean>;
        lastRequest: import("svelte/store").Writable<import("@absolutejs/ai").RAGSearchRequest | null>;
        reset: () => void;
        results: import("svelte/store").Writable<import("@absolutejs/ai").RAGSource[]>;
        search: (input: {
            query: string;
            nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
            nativeCandidateLimit?: number | undefined;
            nativeMaxBackfills?: number | undefined;
            nativeMinResults?: number | undefined;
            nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
            filter?: Record<string, unknown> | undefined;
            queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
            candidateTopK?: number | undefined;
            topK?: number | undefined;
            scoreThreshold?: number | undefined;
            retrieval?: (import("@absolutejs/ai").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
            model?: string | undefined;
            nativeQueryMultiplier?: number | undefined;
            persistTrace?: boolean | undefined;
            traceGroupKey?: string | undefined;
            traceTags?: string[] | undefined;
            retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
        }) => Promise<import("@absolutejs/ai").RAGSource[]>;
        searchWithTrace: (input: {
            query: string;
            nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
            nativeCandidateLimit?: number | undefined;
            nativeMaxBackfills?: number | undefined;
            nativeMinResults?: number | undefined;
            nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
            filter?: Record<string, unknown> | undefined;
            queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
            candidateTopK?: number | undefined;
            topK?: number | undefined;
            scoreThreshold?: number | undefined;
            retrieval?: (import("@absolutejs/ai").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
            model?: string | undefined;
            nativeQueryMultiplier?: number | undefined;
            persistTrace?: boolean | undefined;
            traceGroupKey?: string | undefined;
            traceTags?: string[] | undefined;
            retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
        }) => Promise<import("../client").RAGDetailedSearchResponse>;
        trace: import("svelte/store").Writable<import("@absolutejs/ai").RAGRetrievalTrace | undefined>;
    };
    sources: {
        citationReferenceMap: import("svelte/store").Readable<import("@absolutejs/ai").RAGCitationReferenceMap>;
        chunkGraph: import("svelte/store").Readable<import("@absolutejs/ai").RAGChunkGraph>;
        hasSources: import("svelte/store").Readable<boolean>;
        latestAssistantMessage: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage | undefined>;
        navigationForChunk: (chunkId?: string | null) => import("@absolutejs/ai").RAGChunkGraphNavigation;
        sectionDiagnostics: import("svelte/store").Readable<import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[]>;
        sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
        sources: import("svelte/store").Readable<import("@absolutejs/ai").RAGSource[]>;
        sourceSummaries: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceSummary[]>;
    };
    status: {
        capabilities: import("svelte/store").Writable<import("@absolutejs/ai").RAGBackendCapabilities | undefined>;
        error: import("svelte/store").Writable<string | null>;
        isLoading: import("svelte/store").Writable<boolean>;
        refresh: () => Promise<import("@absolutejs/ai").RAGStatusResponse>;
        reset: () => void;
        status: import("svelte/store").Writable<import("@absolutejs/ai").RAGVectorStoreStatus | undefined>;
    };
    stream: {
        state: import("svelte/store").Readable<import("@absolutejs/ai").RAGAnswerWorkflowState>;
        citations: import("svelte/store").Readable<import("@absolutejs/ai").RAGCitation[]>;
        groundedAnswer: import("svelte/store").Readable<import("@absolutejs/ai").RAGGroundedAnswer>;
        groundingReferences: import("svelte/store").Readable<import("@absolutejs/ai").RAGGroundingReference[]>;
        error: import("svelte/store").Readable<string | null>;
        hasRetrieved: import("svelte/store").Readable<boolean>;
        hasSources: import("svelte/store").Readable<boolean>;
        isAnswerStreaming: import("svelte/store").Readable<boolean>;
        isComplete: import("svelte/store").Readable<boolean>;
        isRetrieved: import("svelte/store").Readable<boolean>;
        isRetrieving: import("svelte/store").Readable<boolean>;
        isStreaming: import("svelte/store").Readable<boolean>;
        latestAssistantMessage: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage | undefined>;
        messages: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage[]>;
        progress: import("svelte/store").Readable<import("../presentation/presentation").RAGStreamProgress>;
        query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
        retrieval: import("svelte/store").Readable<import("@absolutejs/ai").RAGRetrievedState | null>;
        sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
        sourceSummaries: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceSummary[]>;
        sources: import("svelte/store").Readable<import("@absolutejs/ai").RAGSource[]>;
        stage: import("svelte/store").Readable<import("@absolutejs/ai").RAGStreamStage>;
        workflow: import("svelte/store").Readable<import("@absolutejs/ai").RAGAnswerWorkflowState>;
        branch: (messageId: string, content: string) => void;
        cancel: () => void;
        destroy: () => void;
        send: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
        subscribe: (callback: () => void) => () => void;
    };
    workflow: {
        state: import("svelte/store").Readable<import("@absolutejs/ai").RAGAnswerWorkflowState>;
        citations: import("svelte/store").Readable<import("@absolutejs/ai").RAGCitation[]>;
        groundedAnswer: import("svelte/store").Readable<import("@absolutejs/ai").RAGGroundedAnswer>;
        groundingReferences: import("svelte/store").Readable<import("@absolutejs/ai").RAGGroundingReference[]>;
        error: import("svelte/store").Readable<string | null>;
        hasRetrieved: import("svelte/store").Readable<boolean>;
        hasSources: import("svelte/store").Readable<boolean>;
        isAnswerStreaming: import("svelte/store").Readable<boolean>;
        isComplete: import("svelte/store").Readable<boolean>;
        isRetrieved: import("svelte/store").Readable<boolean>;
        isRetrieving: import("svelte/store").Readable<boolean>;
        isStreaming: import("svelte/store").Readable<boolean>;
        latestAssistantMessage: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage | undefined>;
        messages: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage[]>;
        progress: import("svelte/store").Readable<import("../presentation/presentation").RAGStreamProgress>;
        query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
        retrieval: import("svelte/store").Readable<import("@absolutejs/ai").RAGRetrievedState | null>;
        sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
        sourceSummaries: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceSummary[]>;
        sources: import("svelte/store").Readable<import("@absolutejs/ai").RAGSource[]>;
        stage: import("svelte/store").Readable<import("@absolutejs/ai").RAGStreamStage>;
        workflow: import("svelte/store").Readable<import("@absolutejs/ai").RAGAnswerWorkflowState>;
        branch: (messageId: string, content: string) => void;
        cancel: () => void;
        destroy: () => void;
        send: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
        subscribe: (callback: () => void) => () => void;
    };
};
export type CreateRAGResult = ReturnType<typeof createRAG>;
