UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

25 lines (24 loc) 663 B
import { AREA_MAP } from './config'; import type { IPurgeType, IPurgeMethod } from '../eo/type'; export declare function uploadCOSFileAndPurgeUrlCache({ secretId, secretKey, bucket, region, files, area, useEO, eoOptions, }: { secretId: string; secretKey: string; bucket: string; region: string; files: Array<{ key: string; path: string; url: string; }>; area?: (typeof AREA_MAP)[keyof typeof AREA_MAP]; useEO?: boolean; eoOptions?: { zoneId: string; type?: IPurgeType; method?: IPurgeMethod; }; }): Promise<{ uploadResult: any; purgeResult: any; code: 1 | 2; }>;