UNPKG

oss-upload-tool

Version:
24 lines (23 loc) 983 B
import AOSS from 'ali-oss'; import { Client } from '../oss_client'; import type { UploadResp, UploadOptions } from '../oss_client'; import type { OSSUploadOptions, OSSUploadLocalItem } from '../types'; declare class ALIClient extends Client<Partial<AOSS.Options>, AOSS.PutObjectOptions> { #private; constructor(options: OSSUploadOptions); upload: (item: OSSUploadLocalItem, params?: Partial<AOSS.PutObjectOptions> | undefined, options?: UploadOptions | undefined) => Promise<UploadResp>; getUploadedUrl: (item: OSSUploadLocalItem, params?: Partial<AOSS.PutObjectOptions> | undefined) => Promise<{ url: string; }>; get globalOptions(): { accessKeyId: string | undefined; accessKeySecret: string | undefined; bucket: string | undefined; region: string | undefined; endpoint: string | undefined; timeout: number; }; get globalUploadParams(): {}; get client(): AOSS; } export default ALIClient;