UNPKG

@artmate/chat

Version:

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

9 lines (8 loc) 417 B
import { Ref } from 'vue'; import { BubbleContentType } from '../interface'; /** * Return typed content and typing status when typing is enabled. * Or return content directly. */ declare function useTypedEffect(content: Ref<BubbleContentType>, typingEnabled: boolean, typingStep: number, typingInterval: number): [typedContent: Ref<() => BubbleContentType>, isTyping: Ref<boolean>]; export default useTypedEffect;