import type { AIAttachment, AIMessage } from "../../../types/ai"; export declare const createAIStream: (path: string, conversationId?: string) => { branch: (messageId: string, content: string) => void; cancel: () => void; destroy: () => void; edit: (messageId: string, content: string) => void; send: (content: string, attachments?: AIAttachment[]) => void; readonly error: string | null; readonly isStreaming: boolean; readonly messages: AIMessage[]; subscribe(callback: () => void): () => void; };