import type { SetDataEvent } from '@vunk/core'; import type { Deferred } from '@vunk/shared/promise'; import type { PropType } from 'vue'; import type { Paragraph, ParagraphLoadEvent, TextToSpeech } from './types'; import { TickerStatus } from '@vunk/shared/enum'; import { defaultRender } from './const'; export declare const props: { /** * @description md文本转纯文本的函数 */ render: { type: PropType<(text: string) => string>; default: typeof defaultRender; }; /** * @description 段落详情 */ data: { type: { (arrayLength: number): Paragraph[]; (...items: Paragraph[]): Paragraph[]; new (arrayLength: number): Paragraph[]; new (...items: Paragraph[]): Paragraph[]; isArray(arg: any): arg is any[]; readonly prototype: any[]; from(arrayLike: ArrayLike): T[]; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; from(iterable: Iterable | ArrayLike): T[]; from(iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; of(...items: T[]): T[]; fromAsync(iterableOrArrayLike: AsyncIterable | Iterable> | ArrayLike>): Promise; fromAsync(iterableOrArrayLike: AsyncIterable | Iterable | ArrayLike, mapFn: (value: Awaited, index: number) => U, thisArg?: any): Promise[]>; readonly [Symbol.species]: ArrayConstructor; }; default: undefined; }; /** * @description md 文本 */ source: { type: StringConstructor; default: string; }; /** * @description 游标阅读延迟 */ delay: { type: NumberConstructor; default: number; }; /** * @description 段落切割符号 */ separators: { type: { (arrayLength: number): string[]; (...items: string[]): string[]; new (arrayLength: number): string[]; new (...items: string[]): string[]; isArray(arg: any): arg is any[]; readonly prototype: any[]; from(arrayLike: ArrayLike): T[]; from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; from(iterable: Iterable | ArrayLike): T[]; from(iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; of(...items: T[]): T[]; fromAsync(iterableOrArrayLike: AsyncIterable | Iterable> | ArrayLike>): Promise; fromAsync(iterableOrArrayLike: AsyncIterable | Iterable | ArrayLike, mapFn: (value: Awaited, index: number) => U, thisArg?: any): Promise[]>; readonly [Symbol.species]: ArrayConstructor; }; default: () => string[]; }; /** * @description 组件内会根据当前游标是否和 source 长度一致来判断,是否持续阅读, 当一致时,会关闭阅读状态。但若设置为 true,则会持续阅读, 这在动态接收数据时会有用 */ keepRead: { type: BooleanConstructor; default: boolean; }; /** * @description 是否使用自定义语音合成 */ textToSpeech: { type: PropType; default: undefined; }; /** * @description 段落处理函数 */ processing: { type: PropType<(paragraph: Paragraph) => void>; default: import("@vunk/shared").AnyFunc; }; status: { type: PropType; default: TickerStatus; }; paragraphMinlength: { type: NumberConstructor; default: number; }; /** * @description 禁用, 即不产出段落 */ disabled: { type: BooleanConstructor; default: boolean; }; }; export declare const emits: { setData: (e: SetDataEvent) => SetDataEvent; 'update:status': (_: TickerStatus) => boolean; paragraphLoad: (_: ParagraphLoadEvent) => boolean; complete: () => boolean; }; export declare const paragraphProps: { data: { type: PropType; default: () => {}; }; deferred: { type: PropType>; required: true; }; render: { type: PropType<(text: string) => string>; default: typeof defaultRender; }; }; export declare const paragraphEmits: { setData: (e: SetDataEvent) => SetDataEvent; load: (_: ParagraphLoadEvent) => boolean; };