import { ExtractPropTypes } from 'vue'; import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from '../../../shared.type'; import { IFileUploadFile, IFileUploadConstants, IFileUploadModalVm } from '../../file-upload/src/file-upload'; import { getDeleteData, parsePercentage, downloadFile, picturefilePreview, handleClick, play, pause, handleLoadedmetadata, handleTimeupdate, destroyed, showOperatePanel, getFileType, getFileIcon, mounted, calcUploadListLiWidth, reUpload, remove, handleTriggerClick, chooseFile, calcVisible, getNotSuccessFiles } from './renderless'; export type { ISharedRenderlessParamHooks } from '../../../shared.type'; export type { IFileUploadConstants, IFileUploadModalVm, IFileUploadFile, downloadFile }; export declare const uploadListProps: { disabled: { type: BooleanConstructor; default: () => boolean; }; display: { type: BooleanConstructor; default: () => boolean; }; files: { type: ArrayConstructor; default: () => never[]; }; filesIcon: { type: ArrayConstructor; default: () => never[]; }; handlePreview: FunctionConstructor; isEdm: { type: BooleanConstructor; default: () => boolean; }; isFolder: { type: BooleanConstructor; default: () => boolean; }; listType: StringConstructor; openDownloadFile: { type: BooleanConstructor; default: () => boolean; }; srcList: { type: ArrayConstructor; default: () => never[]; }; isFolderTitle: { type: BooleanConstructor; default: boolean; }; listOption: { type: ObjectConstructor; default: () => { showUpdate: boolean; showDel: boolean; }; }; maxNameLength: { type: NumberConstructor; default: number; }; scale: { type: (NumberConstructor | StringConstructor)[]; default: number; }; showName: { type: BooleanConstructor; default: boolean; }; types: ArrayConstructor; displayOnly: { type: BooleanConstructor; default: boolean; }; handleDownloadFile: FunctionConstructor; handleReUpload: FunctionConstructor; isDragover: BooleanConstructor; selected: ObjectConstructor; triggerClick: { type: FunctionConstructor; default: () => void; }; isHwh5: { type: BooleanConstructor; default: boolean; }; triggerPlay: { type: FunctionConstructor; default: () => void; }; mode: StringConstructor; lockScroll: { type: BooleanConstructor; default: boolean; }; compact: { type: BooleanConstructor; default: boolean; }; reUploadable: BooleanConstructor; }; export interface IUploadListState { focusing: boolean; shows: boolean; progressType: string; progressWidth: number; progressStrokeWidth: number; tooltipDisabled: boolean; closeComponent: string; preViewComponent: string; failUploadFileCount: number; startPostion: number; screenType: boolean; showPanel: boolean; showTriggerPanel: boolean; triggerClickType: string; showAudioPanel: boolean; files: object[]; currentFile: null | IFileUploadFile; } export interface IUploadListApi { state: IUploadListState; getApi: () => void; getDeleteData: ReturnType; parsePercentage: ReturnType; downloadFile: ReturnType; picturefilePreview: ReturnType; handleClick: ReturnType; play: ReturnType; pause: ReturnType; handleLoadedmetadata: ReturnType; handleTimeupdate: ReturnType; destroyed: ReturnType; showOperatePanel: ReturnType; getFileType: ReturnType; getFileIcon: ReturnType; mounted: ReturnType; calcUploadListLiWidth: ReturnType; reUpload: ReturnType; remove: ReturnType; handleTriggerClick: ReturnType; chooseFile: ReturnType; calcVisible: ReturnType; getNotSuccessFiles: ReturnType; } export type IUploadListProps = ExtractPropTypes & { files: { status: 'fail' | 'uploading' | 'success' | 'downloading'; }[]; }; export type IUploadListRenderlessParamUtils = ISharedRenderlessParamUtils; export type IUploadListRenderlessParams = ISharedRenderlessFunctionParams & { state: IUploadListState; props: IUploadListProps; api: IUploadListApi; }; export interface IUploadListVideoParam { type: 'ended'; el: HTMLVideoElement; }