UNPKG

ant-design-x-vue-next

Version:

Ant Design X for Vue — community continuation aligned with @ant-design/x

14 lines (13 loc) 693 B
import { type ComputedRef, type MaybeRefOrGetter } from 'vue'; import type { StreamingOption, XMarkdownComponents } from '../interface'; export type UseStreamingConfig = { streaming?: StreamingOption; components?: XMarkdownComponents; }; /** * Incremental markdown streaming cache (aligned with @ant-design/x-markdown useStreaming). * When `streaming.hasNextChunk` is true, incomplete tokens (links/images/emphasis/…) * are held until closed to avoid flicker. When false, full input is returned. */ export declare function useStreaming(input: MaybeRefOrGetter<string>, config?: MaybeRefOrGetter<UseStreamingConfig | undefined>): ComputedRef<string>; export default useStreaming;