/** * Utils - 工具模块导出入口 */ export { default as EventEmitter } from './EventEmitter'; export { SMHError, ErrorCode, ServerErrorCode, newError, analyzeError, extractAxiosErrorInfo, getServerErrorMessage, setServerErrorMessages, resetServerErrorMessages, wrapErrorToSMHError, type ISMHError, type ErrorAnalysis, type AxiosErrorInfo } from './ErrorHandler'; export { formatSize, formatTime, formatRemainingTime } from './Formatter'; export { parallelLimit, delay, withRetry, type ParallelLimitOptions } from './async'; export { calculateBeginningHash, calculateFullHash, sha256 } from './hash'; export { updateCRC64, finalizeCRC64, combineCRC64, combinePartsCRC64, calculateBlobCRC64, calculateBufferCRC64, CRC64_INIT_VALUE } from './crc64'; /** * 解析 COS 域名,提取 bucket 和 region * @param domain COS 域名,如 "bucket-123456.cos.ap-guangzhou.myqcloud.com" * 支持自定义域名场景,解析失败时返回空字符串而非抛错 */ export declare function parseCOSDomain(domain: string): { bucket: string; region: string; };