UNPKG

@artmate/chat

Version:

**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**

19 lines (18 loc) 571 B
import { ArtStreamOptions, SSEOutput } from '../artStream'; export declare function useXStream(): { startStream: (options: ArtStreamOptions<SSEOutput>) => Promise<void>; cancel: () => void; data: import('vue').Ref<{ id?: any; data?: any; event?: any; retry?: any; }[], Partial<Record<import('..').SSEFields, any>>[] | { id?: any; data?: any; event?: any; retry?: any; }[]>; error: import('vue').Ref<Error | null, Error | null>; isLoading: import('vue').Ref<boolean, boolean>; };