import { CSSProperties, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue'; import { DebouncedFunc } from 'lodash-es'; export interface EllipsisBoxProps { /** 文本内容 */ text?: string; /** 文本样式 */ textStyle?: CSSProperties; /** 悬浮框内样式 */ overlayInnerStyle?: CSSProperties; /** * 作为文件名处理 * 仅单行模式下生效 */ fileName?: boolean; /** * 后缀前保留的字符数 * 作为文件名处理时,后缀前几位不会被...替换 * 例如: * 保留两位: 微信图片_2025-06-21_121344_576.jpg => 微信图片_2025-06-...76.jpg * 保留四位: 微信图片_2025-06-21_121344_576.jpg => 微信图片_2025-0..._576.jpg */ extPreNum?: number; /** * 显示的文本行数 * 设置为 1 时为单行省略,大于 1 时为多行省略 * @default 1 */ lines?: number; } declare const _default: __VLS_WithTemplateSlots< DefineComponent, { text: string; textStyle: () => {}; fileName: boolean; extPreNum: number; lines: number; }>>, { checkOverflow: DebouncedFunc<() => Promise>; textSplitList: ComputedRef; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { text: string; textStyle: () => {}; fileName: boolean; extPreNum: number; lines: number; }>>> & Readonly<{}>, { text: string; lines: number; textStyle: CSSProperties; fileName: boolean; extPreNum: number; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, { default?(_: { isOverflowing: boolean; text: string; textSplitList: string[]; }): any; }>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };