import type { AIAttachment } from '../../../types/ai';
export declare const createRAGStream: (path: string, conversationId?: string) => {
    citations: import("svelte/store").Readable<import("../..").RAGCitation[]>;
    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>;
    isRetrieving: import("svelte/store").Readable<boolean>;
    isStreaming: import("svelte/store").Readable<boolean>;
    latestAssistantMessage: import("svelte/store").Readable<import("../..").AIMessage | undefined>;
    messages: import("svelte/store").Readable<import("../..").AIMessage[]>;
    query: (content: string, attachments?: AIAttachment[]) => void;
    retrieval: import("svelte/store").Readable<import("../..").RAGRetrievedState | null>;
    sourceGroups: import("svelte/store").Readable<import("../..").RAGSourceGroup[]>;
    sources: import("svelte/store").Readable<import("../..").RAGSource[]>;
    stage: import("svelte/store").Readable<import("../..").RAGStreamStage>;
    branch: (messageId: string, content: string) => void;
    cancel: () => void;
    destroy: () => void;
    send: (content: string, attachments?: AIAttachment[]) => void;
    subscribe(callback: () => void): () => void;
};
export type CreateRAGStreamResult = ReturnType<typeof createRAGStream>;
