import { ComputedRef, Ref } from "vue"; import { VueInstance } from "@vueuse/core"; import { BadgeType, BadgeVariant } from '../utils'; type targetType = Ref | HTMLElement; interface BadgeOptions { value: Ref | ComputedRef; type?: Ref; variant?: Ref; } /** * @description 为某个元素使用badge * @param target 目标元素 * @param options 配置选项 */ export declare const useBadge: (target: targetType, options: BadgeOptions) => { /** * @description 停止使用badge */ stop: () => void; /** * @description 显示badge */ show: () => void; /** * @description 隐藏badge */ hidden: () => void; /** * @description 设置badge内部文本 */ setTxt: (val: string | number) => void; }; export {};