export interface IFileItem { operationAuth?: string; fileId: string; fileName?: string; fileSize?: number; [prop: string]: any; } interface IConfig { showDownloadBtn?: boolean; showPreviewBtn?: boolean; authToken?: string; apiBaseUrl: string; zipName?: string; isCompress?: boolean; [prop: string]: any; } interface IParams { status: 'pending' | 'fulfilled' | 'rejected'; otherList?: IParams['status'][]; } export interface IResultType { canDownloadFileList: IFileItem[]; noCanDownloadFileList: IFileItem[]; otherParams: IParams; } export declare function fileBatchDownload(fileList: IFileItem[], otherConfig: IConfig): IResultType; export declare function sealFileBatchDownload(request: any, params: any, options?: { isCompress: boolean; isWater?: boolean; } | boolean, scmServiceName?: string): Partial; /** * 是否可以下载 */ export declare function preCanDownload(donwloadReuslt: Partial | null, callback?: () => void): boolean; export declare function nextDownload(donwloadReuslt: IResultType | null, callback?: () => void): void; interface IOtherOption { callbackAfter?: () => void; callbackError?: () => void; } /** * 批量下载 */ export declare function sealDownloadFileCallBack(request: any, params: any, otherOption?: IOtherOption, scmServiceName?: string): void; /** * 批量下载盖章件水印 */ export declare function sealWaterDownloadFileCallBack(request: any, params: any, otherOption?: IOtherOption, scmServiceName?: string): void; export {};