import { ExtractPropTypes } from 'vue'; import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams, ITinyVm } from './shared.type.js'; declare const $constants: { FILE_UPLOAD_INNER_TEMPLATE: string; UPLOAD_INNER: string; UPLOAD_INNER_TEMPLATE: string; UPLOAD_LIST_INNER: string; UPLOAD_LIST_INNER_TEMPLATE: string; ONLY_SUPPORT: string; COMMA: string; FILE_NOT_LESS_THAN: string; FILE_NOT_MORE_THAN: string; FILE_SIZE_RANGE: string; NUMBER_LIMIT: string; FILE_STATUS: { READY: string; SUCESS: string; UPLOADING: string; FAIL: string; DOWNLOADING: string; }; LIST_TYPE: { TEXT: string; PICTURE_CARD: string; PICTURE: string; THUMB: string; PICTURE_SINGLE: string; DRAG_SINGLE: string; SAAS: string; }; EDM: { CHUNKINIT: string; FILESIZE: string; CHUNKS: string; FILENAME: string; ISCHECKCODE: string; CHECKCODE: string; MULTIPART: string; DOCID: string; CHUNK: string; SINGLEUPLOAD: string; LOWERNAME: string; FOLDERKEY: string; FORMAT: string; WATER: string; SOURCE: string; URLCONTS: string; EDMTOKEN: string; TRACEID: string; TEXT: string; JSLIB: string; I18NKEY: string; LARGEFILEKEY: string; EXCEED: string; SIZE: string; SIZE_17G: number; SIZE_2G: number; SIZE_64M: number; SIZE_32M: number; SIZE_20M: number; SIZE_16M: number; SIZE_8M: number; SIZE_4M: number; SIZE_2M: number; SIZE_0M: number; FILEEMPTY: string; KIASCANTIP: string; FILENAMEEXCEEDS: string; THEFILENAME: string; CALCHASH: string; KIASTATUS: number; NumberExceed: string; notSupport: string; NOT_SUPPORT_NO_SUFFIX: string; STATUS_SPECIAL_CHARACTERS: number; NOT_SUPPORT_SPECIAL_CHARACTERS: string; DOC_PREVIEW: string; }; IMAGE_TYPE: string; FILE_TYPE: { EXCEL: string; FILE: string; PDF: string; PICTURE: string; PPT: string; TEXT: string; WORD: string; ZIP: string; VIDEO: string; AUDIO: string; }; SOURCE_TYPE: { SOURCE_VIDEO: string; SOURCE_AUDIO: string; SOURCE_PICTURE: string; }; MODE: { BUBBLE: string; }; }; declare const fileUploadProps: { _constants: { type: ObjectConstructor; default: () => { FILE_UPLOAD_INNER_TEMPLATE: string; UPLOAD_INNER: string; UPLOAD_INNER_TEMPLATE: string; UPLOAD_LIST_INNER: string; UPLOAD_LIST_INNER_TEMPLATE: string; ONLY_SUPPORT: string; COMMA: string; FILE_NOT_LESS_THAN: string; FILE_NOT_MORE_THAN: string; FILE_SIZE_RANGE: string; NUMBER_LIMIT: string; FILE_STATUS: { READY: string; SUCESS: string; UPLOADING: string; FAIL: string; DOWNLOADING: string; }; LIST_TYPE: { TEXT: string; PICTURE_CARD: string; PICTURE: string; THUMB: string; PICTURE_SINGLE: string; DRAG_SINGLE: string; SAAS: string; }; EDM: { CHUNKINIT: string; FILESIZE: string; CHUNKS: string; FILENAME: string; ISCHECKCODE: string; CHECKCODE: string; MULTIPART: string; DOCID: string; CHUNK: string; SINGLEUPLOAD: string; LOWERNAME: string; FOLDERKEY: string; FORMAT: string; WATER: string; SOURCE: string; URLCONTS: string; EDMTOKEN: string; TRACEID: string; TEXT: string; JSLIB: string; I18NKEY: string; LARGEFILEKEY: string; EXCEED: string; SIZE: string; SIZE_17G: number; SIZE_2G: number; SIZE_64M: number; SIZE_32M: number; SIZE_20M: number; SIZE_16M: number; SIZE_8M: number; SIZE_4M: number; SIZE_2M: number; SIZE_0M: number; FILEEMPTY: string; KIASCANTIP: string; FILENAMEEXCEEDS: string; THEFILENAME: string; CALCHASH: string; KIASTATUS: number; NumberExceed: string; notSupport: string; NOT_SUPPORT_NO_SUFFIX: string; STATUS_SPECIAL_CHARACTERS: number; NOT_SUPPORT_SPECIAL_CHARACTERS: string; DOC_PREVIEW: string; }; IMAGE_TYPE: string; FILE_TYPE: { EXCEL: string; FILE: string; PDF: string; PICTURE: string; PPT: string; TEXT: string; WORD: string; ZIP: string; VIDEO: string; AUDIO: string; }; SOURCE_TYPE: { SOURCE_VIDEO: string; SOURCE_AUDIO: string; SOURCE_PICTURE: string; }; MODE: { BUBBLE: string; }; }; }; accept: StringConstructor; action: StringConstructor; autoUpload: { type: BooleanConstructor; default: () => boolean; }; beforeRemove: FunctionConstructor; beforeUpload: FunctionConstructor; data: ObjectConstructor; disabled: BooleanConstructor; display: { type: BooleanConstructor; default: () => boolean; }; drag: BooleanConstructor; dragger: BooleanConstructor; edm: { type: ObjectConstructor; default: () => {}; }; fileIconList: { type: ArrayConstructor; default: () => never[]; }; fileList: { type: ArrayConstructor; default: () => never[]; }; fileSize: { type: (ArrayConstructor | NumberConstructor)[]; validator(value: any): boolean; }; fileTitle: { type: StringConstructor; default: () => string; }; headerShow: { type: BooleanConstructor; default: () => boolean; }; headers: { type: ObjectConstructor; default: () => {}; }; httpRequest: FunctionConstructor; limit: NumberConstructor; listType: { type: StringConstructor; default: () => string; validator: (value: string) => boolean; }; mergeService: { type: BooleanConstructor; default: () => boolean; }; multiple: BooleanConstructor; name: { type: StringConstructor; default: () => string; }; openDownloadFile: { type: BooleanConstructor; default: () => boolean; }; showFileList: { type: BooleanConstructor; default: () => boolean; }; size: StringConstructor; successStatistics: { type: BooleanConstructor; default: () => boolean; }; thumbOption: { type: ObjectConstructor; default: () => { popperClass: string; width: number; showDownload: boolean; downloadFile: FunctionConstructor; showDel: boolean; icon: string; showTooltip: boolean; }; }; type: { type: StringConstructor; default: () => string; }; uploadIcon: { type: BooleanConstructor; default: () => boolean; }; withCredentials: { type: BooleanConstructor; default: () => boolean; }; isFolderTitle: { type: BooleanConstructor; default: boolean; }; listOption: { type: ObjectConstructor; default: () => { showUpdate: boolean; showDel: boolean; }; }; maxNameLength: { type: NumberConstructor; default: number; }; scale: { type: (StringConstructor | NumberConstructor)[]; default: number; }; showName: { type: BooleanConstructor; default: boolean; }; sourceType: { type: StringConstructor; default: string; validator(val: any): any; }; showTitle: { type: BooleanConstructor; default: boolean; }; title: { type: StringConstructor; default: string; }; displayOnly: { type: BooleanConstructor; default: boolean; }; customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[]; hwh5: ObjectConstructor; mode: { type: StringConstructor; default: string; validator(val: any): boolean; }; cacheToken: { type: BooleanConstructor; default: boolean; }; lockScroll: { type: BooleanConstructor; default: boolean; }; compact: { type: BooleanConstructor; default: boolean; }; beforeAddFile: FunctionConstructor; encryptConfig: { type: ObjectConstructor; default: () => { enabled: boolean; encrypt: boolean; watermark: string; }; }; promptTip: { type: BooleanConstructor; default: boolean; }; isHidden: { type: BooleanConstructor; default: boolean; }; pasteUpload: { type: BooleanConstructor; default: boolean; }; reUploadable: BooleanConstructor; reUploadTip: FunctionConstructor; imageBgColor: StringConstructor; tiny_mode: StringConstructor; tiny_mode_root: BooleanConstructor; tiny_template: (FunctionConstructor | ObjectConstructor)[]; tiny_renderless: FunctionConstructor; tiny_theme: StringConstructor; tiny_mcp_config: ObjectConstructor; tiny_chart_theme: ObjectConstructor; }; /** * Copyright (c) 2022 - present TinyVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare const noopFnCreator: (fn: Function, propName?: string) => Function; declare const computedUploadDisabled: ({ props, state }: Pick) => () => boolean; declare const computedUploadingSize: ({ state, constants }: Pick) => () => number; declare const watchListType: ({ constants, state, api }: Pick) => (type: string) => void; declare const watchFileList: ({ constants, state, props, api }: Pick) => (fileList: IFileUploadFile[]) => void; declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick & IFileUploadModalVm) => (file: IFileUploadFile, autoRemove: boolean, doUpload: Function, isMergeUpload?: boolean) => any; declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void; declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick & IFileUploadModalVm) => (file: IFileUploadFile) => boolean; declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void; declare const getFileHash: ({ emit, Modal, constants, t, state }: Pick & IFileUploadModalVm) => ({ file, showTips }: { file: IFileUploadFile; showTips: boolean; }) => Promise; declare const handleStart: ({ api, constants, props, state, vm }: Pick) => (rawFiles: IFileUploadFile[], updateId: string, reUpload?: boolean) => void; declare const calcUploadingFilesInfo: ({ state, constants }: Pick) => () => { percentage: number; uploadList: IFileUploadFile[]; uploadedCount: number; }; declare const handleProgress: ({ api, constants, emit, state }: Pick) => (event: any, rawFile: File) => void; declare const handleSuccess: ({ api, constants, emit, state, props, Modal, t }: Pick) => (res: any, rawFile: IFileUploadFile) => void; declare const handleError: ({ api, constants, emit, state, props }: Pick) => (err: any, rawFile: IFileUploadFile) => void; declare const handleRemove: ({ api, emit, props, state, constants }: Pick) => (file: IFileUploadFile, raw: File) => void; declare const handleReUpload: ({ vm, constants }: Pick) => (file: IFileUploadFile) => void; declare const handleReUploadTotal: (api: IFileUploadRenderlessParams['api']) => (files: IFileUploadFile[]) => void; declare const clearUploadingFiles: ({ constants, state }: Pick) => () => void; declare const getFile: (state: IFileUploadRenderlessParams['state']) => (rawFile: IFileUploadFile) => IFileUploadFile; declare const abort$1: ({ constants, vm, state }: Pick) => (file: IFileUploadFile) => void; declare const abortDownload: ({ state }: Pick) => (file: IFileUploadFile, batch?: boolean) => void; declare const clearFiles: (state: IFileUploadRenderlessParams['state']) => () => void; declare const submit: ({ api, constants, vm, state, props }: Pick) => () => void; declare const handleClick$2: ({ constants, vm }: Pick) => () => any; declare const getFileUploadUrl: (service: IFileUploadRenderlessParams['service']) => () => Promise; declare const updateUrl: ({ api, props, state }: Pick) => () => void; declare const handleFileClick: ({ props, emit }: Pick) => (file: IFileUploadFile) => void; declare const getTranslateFile: ({ api, isChunk, isLessThan17G, file, state }: Pick & { isChunk: boolean; isLessThan17G: boolean; file: IFileUploadFile; }) => (data: IFileUploadFile, type: string, index?: number) => void; declare const getHandleSuccess: ({ state, downloadOps, file, translateFile, isChunk, isLessThan17G }: Pick & { downloadOps: IFileUploadEdmDownload; file: IFileUploadFile; translateFile: ReturnType; isChunk: boolean; isLessThan17G: boolean; }) => (data: any, type: string, index?: number) => boolean; declare const getCalcProgress: () => (evt: any) => number; declare const modifyServiceUrlSingle: ({ state, props, constants }: Pick) => ({ file, serviceUrl, range }: { file: IFileUploadFile; serviceUrl: string; range: object; }) => string; declare const getKiaScanTip: ({ Modal, constants, t }: Pick & IFileUploadModalVm) => ({ data }: { data: IFileUploadFile; }) => IFileUploadModalVm | undefined; declare const validateDownloadStatus: ({ state, Modal }: Pick & IFileUploadModalVm) => ({ downloadOps, file, isLessThan17G, data }: { downloadOps: IFileUploadEdmDownload; file: IFileUploadFile; isLessThan17G: boolean; data: any; }) => true | undefined; declare const createDownloadCancelToken: ({ state, service }: Pick) => (file: IFileUploadFile) => string; declare const downloadFileSingle: ({ service, constants, props, state, api, emit }: Pick) => (args: IFileUploadDownloadFileSingle) => void; declare const downloadFileBatch: ({ api, service, props, state, emit }: Pick) => (args: IFileUploadDownloadFileSingle) => void; declare const downloadFileSingleHwh5: ({ state, props, emit, constants }: Pick) => ({ file }: { file: IFileUploadFile; }) => void; declare const downloadFile$1: ({ api, state }: Pick) => (file: IFileUploadFile) => void; declare const downloadFileSingleInner: ({ props, state, api, constants }: { props: any; state: any; api: any; constants: any; }) => ({ file, isBatch }: { file: any; isBatch: any; }) => void; declare const getDownloadFileInfo: ({ api, state, props, service }: Pick) => ({ docId, docVersion }: { docId: string; docVersion: string; }) => any; declare const largeDocumentDownload: ({ api, state }: Pick) => ({ file, isBatch, isLessThan17G }: IFileUploadLargeDocumentDownload) => void; declare const sliceDownloadChunk: ({ state }: Pick) => (file: IFileUploadFile) => IFileUploadSliceDownloadChunk[][]; declare const batchSegmentDownload: ({ state, api }: Pick) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void; declare const downloadFileInner: ({ api, props, state }: Pick) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void; declare const afterDownload: ({ api, state }: Pick) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void; declare const setWriterFile: ({ state, emit, Streamsaver }: Pick & { Streamsaver: IFileUploadStreamsaver; }) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function; declare const getFormData$1: ({ constants, props, state }: Pick) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData; declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick & IFileUploadModalVm) => (file: IFileUploadFile) => void; declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick) => (file: IFileUploadFile) => Promise; declare const segmentUpload: ({ api, props, service, state, emit, constants }: Pick) => (batchIndex: number, file: IFileUploadFile, progress: { file: IFileUploadFile; }) => void; declare const batchSegmentUpload: ({ api, constants, props, vm, state }: Pick) => ({ docId, batchIndex, batches, progress }: IFileUploadBatchSegmentUpload) => void; declare const sliceChunk: ({ state }: Pick) => (file: IFileUploadFile) => Promise[][]; declare const getToken: ({ constants, props, state, t, Modal }: Pick & IFileUploadModalVm) => ({ token, file, isOnlinePreview, type, isinit }: { token: Function; file: IFileUploadFile; isOnlinePreview: boolean; type: string; isinit: boolean; }) => Promise; declare const previewFile: ({ api, props }: Pick) => (file: IFileUploadFile, open?: boolean) => Promise; declare const getNewTabPreviewUrl: ({ api }: Pick) => (file: IFileUploadFile) => Promise; declare const previewFileSingle: ({ api, state, props, constants, service }: Pick) => ({ file, resolve, open }: { file: IFileUploadFile; resolve: (res: any) => void; open: boolean; }) => void; declare const previewFileBatch: ({ service, props, state, api }: Pick) => ({ file, resolve, open }: { file: any; resolve: any; open: any; }) => void; declare const getPreviewUrlSync: ({ constants, props, state }: Pick) => (file: object, batch?: boolean) => string; declare const previewImage: ({ api, props, service }: Pick) => (file: IFileUploadFile) => Promise; declare const previewImageSingle: ({ service, state, props }: Pick) => ({ file, url }: { file: IFileUploadFile; url: string; }) => any; declare const previewImageBatch: ({ service, api }: Pick) => ({ url, file }: { url: string; file: IFileUploadFile; }) => any; declare const getDialogConfigObj: ({ props, state, t, constants }: Pick) => () => object; declare const computeDocChunkSize: ({ props, state, constants }: Pick) => () => void; declare const computedSourcetype: ({ props, constants }: Pick) => () => string[]; declare const getFileSourceType: ({ state, props, constants }: Pick) => ({ file }: { file: IFileUploadFile; }) => string | undefined; declare const updateFile: ({ constants, vm }: Pick) => (file: IFileUploadFile) => void; declare const handleChange$1: ({ vm, constants }: Pick) => (file: IFileUploadFile) => void; declare const handleTriggerClick$1: ({ vm, state, constants, props, emit }: Pick) => ($event: Event, type: string) => void; declare const onBeforeDestroy$1: (state: IFileUploadRenderlessParams['state']) => () => void; declare const handleClickFileList: ({ state, emit }: Pick) => (file: IFileUploadFile) => void; declare const mounted$2: ({ vm, state }: Pick) => () => void; /** * Copyright (c) 2022 - present TinyVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare const parsePercentage: () => (val: string) => number; declare const handleClick$1: ({ props, api, parent }: Pick) => (e: Event, file: IFileUploadFile) => Function; declare const downloadFile: (service: IUploadListRenderlessParams['service']) => (file: IFileUploadFile) => void; declare const picturefilePreview: (state: IUploadListRenderlessParams['state']) => (index: number) => void; declare const getDeleteData: (emit: IUploadListRenderlessParams['emit']) => (data: string[]) => void; declare const showOperatePanel: ({ state }: Pick) => ({ file }: { file: IFileUploadFile; }) => void; declare const reUpload: ({ emit, props, parent }: Pick) => (file: IFileUploadFile) => void; declare const play: ({ vm, api, props }: Pick) => ({ file, index, type }: { file: IFileUploadFile; index: number; type: string; }) => any; declare const pause: ({ vm, props }: Pick) => ({ file, index, type }: { file: IFileUploadFile; index: number; type: string; }) => any; declare const handleLoadedmetadata: ({ vm }: Pick) => ({ e, file }: { e: Event; file: IFileUploadFile; }) => void; declare const handleTimeupdate: () => ({ e, file }: { e: Event; file: IFileUploadFile; }) => void; declare const getFileType: () => ({ file }: { file: IFileUploadFile; }) => string; declare const getFileIcon: ({ constants }: Pick) => ({ type }: { type: string; }) => { name: string; color: string; }; declare const remove: ({ emit }: Pick) => ({ file }: { file: IFileUploadFile; }) => void; declare const calcUploadListLiWidth: ({ vm, nextTick, props, constants }: Pick) => () => void; declare const calcVisible: ({ props, constants, emit }: Pick) => () => void; declare const getNotSuccessFiles: ({ props, constants }: Pick) => () => object[]; declare const chooseFile: ({ state, constants }: Pick) => (type: string) => void; declare const handleTriggerClick: ({ state, props }: Pick) => ($event: Event, type: string) => Promise; declare const mounted$1: ({ api, vm }: Pick) => () => void; declare const destroyed: ({ props, vm }: Pick) => () => void; declare const uploadProps: { accept: StringConstructor; action: { type: StringConstructor; default: string; }; autoUpload: BooleanConstructor; beforeUpload: FunctionConstructor; pasteUpload: BooleanConstructor; data: ObjectConstructor; disabled: BooleanConstructor; drag: BooleanConstructor; edmToken: { type: ObjectConstructor; default: () => {}; }; fileList: { type: ArrayConstructor; default: () => never[]; }; headers: ObjectConstructor; httpRequest: { type: FunctionConstructor; default: (option: any) => XMLHttpRequest | undefined; }; isFolder: { type: BooleanConstructor; default: boolean; }; limit: NumberConstructor; listType: StringConstructor; multiple: BooleanConstructor; name: { type: StringConstructor; default: string; }; onError: FunctionConstructor; onExceed: FunctionConstructor; onPreview: { type: FunctionConstructor; default: () => void; }; onProgress: FunctionConstructor; onRemove: { type: FunctionConstructor; default: () => void; }; onStart: FunctionConstructor; onSuccess: FunctionConstructor; type: StringConstructor; withCredentials: BooleanConstructor; isHidden: { type: BooleanConstructor; default: boolean; }; scale: { type: (StringConstructor | NumberConstructor)[]; default: number; }; sourceType: { type: StringConstructor; default: string; validator(val: string): boolean; }; displayOnly: { type: BooleanConstructor; default: boolean; }; customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[]; handleTriggerClick: { type: FunctionConstructor; default: () => void; }; mode: StringConstructor; showTitle: BooleanConstructor; isHwh5: { type: BooleanConstructor; default: boolean; }; tipMessage: { type: StringConstructor; default: string; }; promptTip: { type: BooleanConstructor; default: boolean; }; showFileList: { type: BooleanConstructor; default: boolean; }; tiny_mode: StringConstructor; tiny_mode_root: BooleanConstructor; tiny_template: (FunctionConstructor | ObjectConstructor)[]; tiny_renderless: FunctionConstructor; tiny_theme: StringConstructor; tiny_mcp_config: ObjectConstructor; tiny_chart_theme: ObjectConstructor; }; /** * Copyright (c) 2022 - present TinyVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare const isImage: (str: string) => boolean; declare const handleChange: (api: IUploadRenderlessParams['api']) => (event: Event) => void; declare const handlePaste: ({ api, props }: Pick) => (event: ClipboardEvent) => void; declare const getFormData: ({ constants, state, props }: Pick) => ({ formData, file, type }: { formData: IUploadFormData; file: IFileUploadFile; type: string; }) => void; declare const uploadFiles: ({ state, constants, Modal, props, t }: Pick & IFileUploadModalVm) => (files: FileList | IFileUploadFile[]) => void; declare const upload: ({ api, props, refs }: Pick) => (rawFile: File) => void; declare const abort: ({ state, props, constants }: Pick) => (file: IFileUploadFile) => void; declare const post: ({ api, constants, props, state, service }: Pick) => (rawFile: IFileUploadFile) => void; declare const handleClick: ({ props, refs, state }: Pick) => ($event: Event, type: string) => void; declare const handleKeydown: (api: IUploadRenderlessParams['api']) => (event: KeyboardEvent) => void; declare const handleUpdate: ({ props, state }: Pick) => (file: IFileUploadFile) => void; declare const mounted: ({ state, props, api }: Pick) => () => void; declare const onBeforeDestroy: (state: IUploadRenderlessParams['state']) => () => void; type IUploadStateHeader = { [propName: string]: string; } | undefined; interface IUploadState { mouseover: boolean; reqs: { uid?: string; }; uploader: IFileUploadVm; accecpt: string; isEdm: boolean; openEdmDownload: boolean; headers: IUploadStateHeader; formData: object; cancelToken: object; updateId: string; updateInput: null | HTMLInputElement; } interface IUploadApi { state: IUploadState; isImage: typeof isImage; abort: ReturnType; getFormData: ReturnType; handleClick: ReturnType; onBeforeDestroy: ReturnType; handleUpdate: ReturnType; handlePaste: ReturnType; uploadFiles: ReturnType; post: ReturnType; handleChange: ReturnType; handleKeydown: ReturnType; upload: ReturnType; mounted: ReturnType; } type IUploadProps = ExtractPropTypes; type IUploadRenderlessParamUtils = ISharedRenderlessParamUtils; type IUploadRenderlessParams = ISharedRenderlessFunctionParams & { state: IUploadState; props: IUploadProps; api: IUploadApi; }; interface IUploadRenderlessOtherParams { rawFile: IFileUploadFile; uploaderInner: ITinyVm; uid: string; } interface IUploadFormData extends FormData { append(name: string, value: boolean | string | number | Blob, fileName?: string): void; } interface IUploadOptionsOfPost { headers: object; withCredentials: boolean; file: File; data: IUploadFormData | undefined | Record; filename: string; action?: string; onSuccess: (res: object) => void; onProgress?: (event: Event) => void; onError: (error: object) => void; [x: string]: any; } interface IUploadOptionsOfHwh5 { edmAuth: { edmToken: string; appId: string; }; filePath: string; progress: number; onProgress: (data: object) => void; onSuccess: (res: object) => void; onError: (error: object) => void; } interface IFileUploadState { url: string; updateId: string; currentDownloadFiles: string; tempIndex: number; draging: boolean; uploadFiles: IFileUploadFile[]; dragOver: boolean; httpRequest: () => void; form: ITinyVm; listeners: object; docSize: number; chunkSize: number; chunkBatchLimit: number; downloadChunkLimit: number; batchQueue: object; batchQueueListen: object; batchCancelToken: object; replayAtoms: object; chunkUploadUrl: string; largeFileInfo: object; headers: object; accept: string | undefined; edmToken: object; isSuccess: boolean; singleMaxSize: number; formData: object; showPreview: boolean; iframeUrl: string; fileWater: boolean; tabUrl: string; cacheDocuments: object; isEdm: boolean; uploadDisabled: boolean; dialogConfigObj: object; uploadingFiles: IFileUploadFile[]; currentUploadingFileUids: number[]; uploadingSize: number; isEntireCheckCode: boolean; downloadBatchQueue: object; downloadBatchQueueListen: object; downloadChunkFile: object; downloadReplayAtoms: object; errorStatusCodes: number[]; hasFileInfoInterface: string; currentDownloadFile: string; isDragover: boolean; downloadCancelToken: object; downloadCancelData: object; isHwh5: boolean; selected: null | object; types: string; triggerClickType: string; visible: boolean; downloadParamsWhitelist: string[]; } interface IFileUploadApi { state: IFileUploadState; sliceChunk: ReturnType; getFormData: ReturnType; abort: ReturnType; handleClick: ReturnType; handleFileClick: ReturnType; getFile: ReturnType; clearFiles: ReturnType; watchFileList: ReturnType; watchListType: ReturnType; onBeforeDestroy: ReturnType; computedUploadDisabled: ReturnType; computedUploadingSize: ReturnType; getFileUploadUrl: ReturnType; getToken: ReturnType; getDialogConfigObj: ReturnType; computeDocChunkSize: ReturnType; updateFile: ReturnType; getPreviewUrlSync: ReturnType; ordinaryDownload: ReturnType; clearUploadingFiles: ReturnType; calcUploadingFilesInfo: ReturnType; properFileSize: ReturnType; mounted: ReturnType; previewFileSingle: ReturnType; previewFileBatch: ReturnType; previewImageSingle: ReturnType; previewImageBatch: ReturnType; abortDownload: ReturnType; createDownloadCancelToken: ReturnType; computedSourcetype: ReturnType; getFileSourceType: ReturnType; segmentUploadInit: ReturnType; segmentUpload: ReturnType; addFileToList: ReturnType; downloadFile: ReturnType; downloadFileSingleInner: ReturnType; previewImage: ReturnType; previewFile: ReturnType; getNewTabPreviewUrl: ReturnType; submit: ReturnType; handleStart: ReturnType; batchSegmentUpload: ReturnType; largeDocumentUpload: ReturnType; handleProgress: ReturnType; handleSuccess: ReturnType; handleError: ReturnType; handleRemove: ReturnType; updateUrl: ReturnType; startUpload: ReturnType; beforeUpload: ReturnType; getDownloadFileInfo: ReturnType; largeDocumentDownload: ReturnType; sliceDownloadChunk: ReturnType; batchSegmentDownload: ReturnType; downloadFileInner: ReturnType; setWriterFile: ReturnType; afterDownload: ReturnType; getFileHash: ReturnType; modifyServiceUrlSingle: ReturnType; getKiaScanTip: ReturnType; downloadFileSingle: ReturnType; downloadFileBatch: ReturnType; downloadFileSingleHwh5: ReturnType; validateDownloadStatus: ReturnType; handleChange: ReturnType; handleClickFileList: ReturnType; handleTriggerClick: ReturnType; handleReUpload: ReturnType; handleReUploadTotal: ReturnType; } type IFileUploadNoopFnCreator = ReturnType; interface IFileUploadService { get: IFileUploadNoopFnCreator; post: IFileUploadNoopFnCreator; request: IFileUploadNoopFnCreator; all: IFileUploadNoopFnCreator; spread: IFileUploadNoopFnCreator; cancelToken: IFileUploadNoopFnCreator; getSingleUploadUrl: IFileUploadNoopFnCreator; getFileUploadUrl: IFileUploadNoopFnCreator; getFileDownloadUrl: IFileUploadNoopFnCreator; getSingleDownloadUrl: IFileUploadNoopFnCreator; getPackageDownloadUrl: IFileUploadNoopFnCreator; getLargeFileInitUrl: IFileUploadNoopFnCreator; getChunkUploadUrl: IFileUploadNoopFnCreator; getPreviewUrl: IFileUploadNoopFnCreator; getDocumentInfoUrl: IFileUploadNoopFnCreator; getPreviewUrlBatch: IFileUploadNoopFnCreator; httpRequest: IFileUploadNoopFnCreator; } type IFileUploadProps = ExtractPropTypes; type IFileUploadConstants = typeof $constants; type IFileUploadRenderlessParamUtils = ISharedRenderlessParamUtils; type IFileUploadRenderlessParams = ISharedRenderlessFunctionParams & { state: IFileUploadState; props: IFileUploadProps; api: IFileUploadApi; }; type IFileUploadVm = ITinyVm & IFileUploadProps; interface IFileUploadModalVm { Modal: ITinyVm; } type IFileUploadFile = File & { [propName: string]: any; }; interface IFileUploadEdmDownload { token: string; packageToken: string; loading: Function; fail: Function; paramsWhitelist: any[]; } interface IFileUploadDownloadFileSingleInner { file: IFileUploadFile; isBatch: boolean; } interface IFileUploadLargeDocumentDownload extends IFileUploadDownloadFileSingleInner { isLessThan17G?: boolean; } interface IFileUploadDownloadFileInner extends IFileUploadLargeDocumentDownload { batchIndex?: number; range?: { index: number; }; isChunk?: boolean; } interface IFileUploadDownloadFileSingle extends IFileUploadDownloadFileInner { calcProgress: ReturnType; isFinished: boolean; handleSuccess: ReturnType; downloadOps: IFileUploadEdmDownload; } interface IFileUploadBatchSegmentUpload { docId: string; batchIndex: number; batches: Promise[][]; progress: { file: IFileUploadFile; }; } interface IFileUploadSegmentUploadInner { batchIndex: number; file: IFileUploadFile; progress: { file: IFileUploadFile; }; } interface IFileUploadGetFormData { formData: IUploadFormData; file: IFileUploadFile; type: string; } interface IFileUploadSetWriterFile { data: any; index: number; isLessThan17G: boolean; file: IFileUploadFile; } interface IFileUploadAfterDownload extends IFileUploadDownloadFileSingle { data: any; } interface IFileUploadBatchSegmentDownload { batchIndex: number; batches: IFileUploadSliceDownloadChunk[][]; docId: string; isBatch: boolean; isLessThan17G: boolean; } interface IFileUploadSliceDownloadChunk { startRange: number; endRange: number; index: number; } interface IFileUploadStreamsaver { createWriteStream: Function; } 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: (StringConstructor | NumberConstructor)[]; 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; }; imageBgColor: StringConstructor; tiny_mode: StringConstructor; tiny_mode_root: BooleanConstructor; tiny_template: (FunctionConstructor | ObjectConstructor)[]; tiny_renderless: FunctionConstructor; tiny_theme: StringConstructor; tiny_mcp_config: ObjectConstructor; tiny_chart_theme: ObjectConstructor; }; /** * Copyright (c) 2022 - present TinyVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare let getApi: () => { downloadFile: Function; }; 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; } interface IUploadListApi { state: IUploadListState; getApi: typeof getApi; 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; } type IUploadListProps = ExtractPropTypes & { files: { status: 'fail' | 'uploading' | 'success' | 'downloading'; }[]; }; type IUploadListRenderlessParamUtils = ISharedRenderlessParamUtils; type IUploadListRenderlessParams = ISharedRenderlessFunctionParams & { state: IUploadListState; props: IUploadListProps; api: IUploadListApi; }; interface IUploadListVideoParam { type: 'ended'; el: HTMLVideoElement; } export { IFileUploadGetFormData as A, IFileUploadSetWriterFile as B, IFileUploadAfterDownload as C, IFileUploadBatchSegmentDownload as D, IFileUploadSliceDownloadChunk as E, IFileUploadStreamsaver as F, IUploadListState as G, IUploadListApi as H, IFileUploadVm as I, IUploadListProps as J, IUploadListRenderlessParamUtils as K, IUploadListRenderlessParams as L, IUploadListVideoParam as M, IFileUploadConstants as a, IUploadStateHeader as b, IUploadState as c, IUploadApi as d, IUploadProps as e, IUploadRenderlessParamUtils as f, IUploadRenderlessParams as g, IUploadRenderlessOtherParams as h, IUploadFormData as i, IUploadOptionsOfPost as j, IUploadOptionsOfHwh5 as k, IFileUploadState as l, IFileUploadApi as m, IFileUploadService as n, IFileUploadProps as o, IFileUploadRenderlessParamUtils as p, IFileUploadRenderlessParams as q, IFileUploadModalVm as r, IFileUploadFile as s, IFileUploadEdmDownload as t, IFileUploadDownloadFileSingleInner as u, IFileUploadLargeDocumentDownload as v, IFileUploadDownloadFileInner as w, IFileUploadDownloadFileSingle as x, IFileUploadBatchSegmentUpload as y, IFileUploadSegmentUploadInner as z };