import { Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties, DefineComponent, ExtractPropTypes, PropType, PublicProps } from 'vue'; import { UploadUserFile, UploadFile, UploadHooks, Crossorigin, UploadData, UploadRawFile, ListType, UploadRequestHandler, UploadProps, UploadStatus } from 'element-plus'; import { AttachmentFile, AttachmentUploader, AttachmentThumbnail, AttachmentFileType } from './types'; import { Awaitable } from 'element-plus/es/utils/typescript.mjs'; import { OnCleanup } from '@vue/reactivity'; import { BaseSize, MaybePromise } from '..'; declare function __VLS_template(): { attrs: Partial<{}>; slots: { upload?(_: {}): any; tip?(_: {}): any; }; refs: { elUploadRef: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly beforeUpload?: UploadHooks["beforeUpload"] | undefined; readonly beforeRemove?: UploadHooks["beforeRemove"] | undefined; readonly onRemove?: UploadHooks["onRemove"] | undefined; readonly onChange?: UploadHooks["onChange"] | undefined; readonly onPreview?: UploadHooks["onPreview"] | undefined; readonly onSuccess?: UploadHooks["onSuccess"] | undefined; readonly onProgress?: UploadHooks["onProgress"] | undefined; readonly onError?: UploadHooks["onError"] | undefined; readonly onExceed?: UploadHooks["onExceed"] | undefined; readonly crossorigin?: Crossorigin | undefined; readonly action?: string | undefined; readonly headers?: (Headers | Record) | undefined; readonly method?: string | undefined; readonly data?: ( Awaitable | ((rawFile: UploadRawFile) => Awaitable)) | undefined; readonly multiple?: boolean | undefined; readonly name?: string | undefined; readonly drag?: boolean | undefined; readonly withCredentials?: boolean | undefined; readonly showFileList?: boolean | undefined; readonly accept?: string | undefined; readonly fileList?: UploadUserFile[] | undefined; readonly autoUpload?: boolean | undefined; readonly listType?: ListType | undefined; readonly httpRequest?: UploadRequestHandler | undefined; readonly disabled?: boolean | undefined; readonly limit?: number | undefined; readonly directory?: boolean | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: Attrs; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $host: Element | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: ComponentOptionsBase & Readonly<{}>, { abort: (file?: UploadFile) => void; submit: () => void; clearFiles: (states?: UploadStatus[]) => void; handleStart: (rawFile: UploadRawFile) => void; handleRemove: (file: UploadFile | UploadRawFile) => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, { onChange: UploadHooks["onChange"]; disabled: boolean; name: string; onError: UploadHooks["onError"]; onProgress: UploadHooks["onProgress"]; data: Awaitable | ((rawFile: UploadRawFile) => Awaitable); beforeUpload: UploadHooks["beforeUpload"]; onRemove: UploadHooks["onRemove"]; onPreview: UploadHooks["onPreview"]; onSuccess: UploadHooks["onSuccess"]; onExceed: UploadHooks["onExceed"]; action: string; method: string; showFileList: boolean; accept: string; fileList: UploadUserFile[]; autoUpload: boolean; listType: ListType; httpRequest: UploadRequestHandler; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle; } & Readonly<{ onChange: UploadHooks["onChange"]; disabled: boolean; name: string; onError: UploadHooks["onError"]; onProgress: UploadHooks["onProgress"]; data: Awaitable | ((rawFile: UploadRawFile) => Awaitable); beforeUpload: UploadHooks["beforeUpload"]; onRemove: UploadHooks["onRemove"]; onPreview: UploadHooks["onPreview"]; onSuccess: UploadHooks["onSuccess"]; onExceed: UploadHooks["onExceed"]; action: string; method: string; showFileList: boolean; accept: string; fileList: UploadUserFile[]; autoUpload: boolean; listType: ListType; httpRequest: UploadRequestHandler; }> & Omit & Readonly<{}>, "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "abort" | "submit" | "action" | "onRemove" | "accept" | "listType" | "beforeUpload" | "autoUpload" | "fileList" | "onPreview" | "onSuccess" | "onExceed" | "method" | "showFileList" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & { abort: (file?: UploadFile) => void; submit: () => void; clearFiles: (states?: UploadStatus[]) => void; handleStart: (rawFile: UploadRawFile) => void; handleRemove: (file: UploadFile | UploadRawFile) => void; } & {} & ComponentCustomProperties & {} & { $slots: { file?: (props: { file: UploadFile; index: number; }) => any; } & { trigger?: (props: {}) => any; } & { default?: (props: {}) => any; } & { trigger?: (props: {}) => any; } & { default?: (props: {}) => any; } & { default?: (props: {}) => any; } & { tip?: (props: {}) => any; } & { file?: (props: { file: UploadFile; index: number; }) => any; }; }) | null; }; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: DefineComponent; default: () => never[]; }; selectValue: { type: PropType; }; uploader: { type: PropType; }; multiple: { type: BooleanConstructor; }; limit: { type: NumberConstructor; }; accept: { type: StringConstructor; default: string; }; disabled: { type: BooleanConstructor; }; size: { type: PropType; default: string; }; thumbnail: { type: PropType; }; addable: { type: BooleanConstructor; default: boolean; }; removable: { type: BooleanConstructor; default: boolean; }; downloadable: { type: BooleanConstructor; default: boolean; }; previewable: { type: BooleanConstructor; default: boolean; }; selectable: { type: BooleanConstructor; default: boolean; }; clickable: { type: BooleanConstructor; default: boolean; }; listType: { type: PropType<"card" | "list">; default: string; }; beforeUpload: { type: FunctionConstructor; }; limitSize: { type: StringConstructor; default: string; }; formatter: { type: PropType<(files: AttachmentFile[]) => MaybePromise>; }; valueFormatter: { type: PropType<(files: UploadUserFile[]) => MaybePromise>; }; previewer: { type: PropType<(file: AttachmentFile) => void>; }; downloader: { type: PropType<(file: AttachmentFile) => void>; }; autoUpload: { type: BooleanConstructor; default: boolean; }; showTitle: { type: BooleanConstructor; default: boolean; }; }>, { elUploadRef: Ref; remove: (file: AttachmentFile) => Promise; download: (file: AttachmentFile) => void; selections: Ref<{ [x: string]: any; url: string; name?: string | undefined; type?: AttachmentFileType | undefined; }[], AttachmentFile[] | { [x: string]: any; url: string; name?: string | undefined; type?: AttachmentFileType | undefined; }[]>; fileList: Ref; upload: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { select: (files: AttachmentFile[]) => any; click: (file: AttachmentFile) => any; change: (files: AttachmentFile[]) => any; "update:modelValue": (files: AttachmentFile[]) => any; remove: (file: AttachmentFile) => any; preview: (file: AttachmentFile) => any; download: (file: AttachmentFile) => any; "update:selectValue": (files: AttachmentFile | AttachmentFile[]) => any; }, string, PublicProps, Readonly< ExtractPropTypes<{ modelValue: { type: PropType; default: () => never[]; }; selectValue: { type: PropType; }; uploader: { type: PropType; }; multiple: { type: BooleanConstructor; }; limit: { type: NumberConstructor; }; accept: { type: StringConstructor; default: string; }; disabled: { type: BooleanConstructor; }; size: { type: PropType; default: string; }; thumbnail: { type: PropType; }; addable: { type: BooleanConstructor; default: boolean; }; removable: { type: BooleanConstructor; default: boolean; }; downloadable: { type: BooleanConstructor; default: boolean; }; previewable: { type: BooleanConstructor; default: boolean; }; selectable: { type: BooleanConstructor; default: boolean; }; clickable: { type: BooleanConstructor; default: boolean; }; listType: { type: PropType<"card" | "list">; default: string; }; beforeUpload: { type: FunctionConstructor; }; limitSize: { type: StringConstructor; default: string; }; formatter: { type: PropType<(files: AttachmentFile[]) => MaybePromise>; }; valueFormatter: { type: PropType<(files: UploadUserFile[]) => MaybePromise>; }; previewer: { type: PropType<(file: AttachmentFile) => void>; }; downloader: { type: PropType<(file: AttachmentFile) => void>; }; autoUpload: { type: BooleanConstructor; default: boolean; }; showTitle: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onSelect?: ((files: AttachmentFile[]) => any) | undefined; onClick?: ((file: AttachmentFile) => any) | undefined; onChange?: ((files: AttachmentFile[]) => any) | undefined; "onUpdate:modelValue"?: ((files: AttachmentFile[]) => any) | undefined; onRemove?: ((file: AttachmentFile) => any) | undefined; onPreview?: ((file: AttachmentFile) => any) | undefined; onDownload?: ((file: AttachmentFile) => any) | undefined; "onUpdate:selectValue"?: ((files: AttachmentFile | AttachmentFile[]) => any) | undefined; }>, { size: BaseSize; disabled: boolean; modelValue: AttachmentFile[]; addable: boolean; multiple: boolean; accept: string; removable: boolean; downloadable: boolean; previewable: boolean; selectable: boolean; clickable: boolean; listType: "card" | "list"; limitSize: string; autoUpload: boolean; showTitle: boolean; }, {}, {}, {}, string, ComponentProvideOptions, true, { elUploadRef: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly beforeUpload?: UploadHooks["beforeUpload"] | undefined; readonly beforeRemove?: UploadHooks["beforeRemove"] | undefined; readonly onRemove?: UploadHooks["onRemove"] | undefined; readonly onChange?: UploadHooks["onChange"] | undefined; readonly onPreview?: UploadHooks["onPreview"] | undefined; readonly onSuccess?: UploadHooks["onSuccess"] | undefined; readonly onProgress?: UploadHooks["onProgress"] | undefined; readonly onError?: UploadHooks["onError"] | undefined; readonly onExceed?: UploadHooks["onExceed"] | undefined; readonly crossorigin?: Crossorigin | undefined; readonly action?: string | undefined; readonly headers?: (Headers | Record) | undefined; readonly method?: string | undefined; readonly data?: ( Awaitable | ((rawFile: UploadRawFile) => Awaitable)) | undefined; readonly multiple?: boolean | undefined; readonly name?: string | undefined; readonly drag?: boolean | undefined; readonly withCredentials?: boolean | undefined; readonly showFileList?: boolean | undefined; readonly accept?: string | undefined; readonly fileList?: UploadUserFile[] | undefined; readonly autoUpload?: boolean | undefined; readonly listType?: ListType | undefined; readonly httpRequest?: UploadRequestHandler | undefined; readonly disabled?: boolean | undefined; readonly limit?: number | undefined; readonly directory?: boolean | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: Attrs; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $host: Element | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: ComponentOptionsBase & Readonly<{}>, { abort: (file?: UploadFile) => void; submit: () => void; clearFiles: (states?: UploadStatus[]) => void; handleStart: (rawFile: UploadRawFile) => void; handleRemove: (file: UploadFile | UploadRawFile) => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, { onChange: UploadHooks["onChange"]; disabled: boolean; name: string; onError: UploadHooks["onError"]; onProgress: UploadHooks["onProgress"]; data: Awaitable | ((rawFile: UploadRawFile) => Awaitable); beforeUpload: UploadHooks["beforeUpload"]; onRemove: UploadHooks["onRemove"]; onPreview: UploadHooks["onPreview"]; onSuccess: UploadHooks["onSuccess"]; onExceed: UploadHooks["onExceed"]; action: string; method: string; showFileList: boolean; accept: string; fileList: UploadUserFile[]; autoUpload: boolean; listType: ListType; httpRequest: UploadRequestHandler; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle; } & Readonly<{ onChange: UploadHooks["onChange"]; disabled: boolean; name: string; onError: UploadHooks["onError"]; onProgress: UploadHooks["onProgress"]; data: Awaitable | ((rawFile: UploadRawFile) => Awaitable); beforeUpload: UploadHooks["beforeUpload"]; onRemove: UploadHooks["onRemove"]; onPreview: UploadHooks["onPreview"]; onSuccess: UploadHooks["onSuccess"]; onExceed: UploadHooks["onExceed"]; action: string; method: string; showFileList: boolean; accept: string; fileList: UploadUserFile[]; autoUpload: boolean; listType: ListType; httpRequest: UploadRequestHandler; }> & Omit & Readonly<{}>, "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "abort" | "submit" | "action" | "onRemove" | "accept" | "listType" | "beforeUpload" | "autoUpload" | "fileList" | "onPreview" | "onSuccess" | "onExceed" | "method" | "showFileList" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & { abort: (file?: UploadFile) => void; submit: () => void; clearFiles: (states?: UploadStatus[]) => void; handleStart: (rawFile: UploadRawFile) => void; handleRemove: (file: UploadFile | UploadRawFile) => void; } & {} & ComponentCustomProperties & {} & { $slots: { file?: (props: { file: UploadFile; index: number; }) => any; } & { trigger?: (props: {}) => any; } & { default?: (props: {}) => any; } & { trigger?: (props: {}) => any; } & { default?: (props: {}) => any; } & { default?: (props: {}) => any; } & { tip?: (props: {}) => any; } & { file?: (props: { file: UploadFile; index: number; }) => any; }; }) | null; }, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };