import type { AnyFunc } from '@vunk/shared'; import type { UploadFile } from 'ant-design-vue'; import type { PropType } from 'vue'; export declare const props: { /** * @description v-model 绑定文件列表 */ fileList: { type: PropType; default: undefined; }; /** * @description 文件上传地址 */ action: { type: StringConstructor; default: string; }; /** * @description v-model 绑定文本 */ modelValue: { type: StringConstructor; default: string; }; /** * @description 是否加载中,表现在发送按钮上 */ loading: { type: BooleanConstructor; default: undefined; }; /** * @description 可选模块, 包含: Attachments 文件上传; */ modules: { type: { (arrayLength: number): "Attachments"[]; (...items: "Attachments"[]): "Attachments"[]; new (arrayLength: number): "Attachments"[]; new (...items: "Attachments"[]): "Attachments"[]; 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: () => never[]; }; /** * @description 非自定义Send Button时,禁用态 */ sendDisabled: { type: BooleanConstructor; default: boolean; }; /** * @description v-model attachments显隐 在 Attachments 模块存在时有效 */ attachmentsVisible: { type: BooleanConstructor; default: undefined; }; /** * @description 自定义 Send Button */ createSendButton: { type: PropType; default: undefined; }; /** * @description 自定义 Attachments Button, 在 Attachments 模块存在时有效 */ createAttachmentsButton: { type: PropType; default: undefined; }; /** * @description 调整文本域大小 */ autoSize: { type: PropType<{ minRows?: number; maxRows?: number; }>; default: undefined; }; /** * @link https://antd-design-x-vue.netlify.app/component/attachments.html */ attachmentsProps: { type: ObjectConstructor; default: () => {}; }; attachmentsPlaceholder: { type: StringConstructor; default: string; }; }; export declare const emits: { 'update:fileList': (_: UploadFile[]) => boolean; 'update:modelValue': (_: string) => boolean; 'update:attachmentsVisible': (_: boolean) => boolean; submit: (_: string) => boolean; cancel: null; };