import { type InjectionKey, type Ref } from "vue"; import type { AIAttachment, AIMessage } from "../../../types/ai"; type AIStreamReturn = { branch: (messageId: string, content: string) => void; cancel: () => void; destroy: () => void; edit: (messageId: string, content: string) => void; error: Ref; isStreaming: Ref; messages: Ref; send: (content: string, attachments?: AIAttachment[]) => void; }; export declare const AIStreamKey: InjectionKey; export declare const useAIStream: (path: string, conversationId?: string) => { branch: (messageId: string, content: string) => void; cancel: () => void; destroy: () => void; edit: (messageId: string, content: string) => void; error: Ref; isStreaming: Ref; messages: import("vue").ShallowRef; send: (content: string, attachments?: AIAttachment[]) => void; }; export {};