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;
    send: (content: string, attachments?: AIAttachment[]) => void;
    subscribe: (callback: () => void) => () => void;
    readonly error: string | null;
    readonly isStreaming: boolean;
    readonly messages: AIMessage[];
};
