29 lines
764 B
TypeScript
29 lines
764 B
TypeScript
import { HuaweiYunInstance } from './service/huawei/Huawei';
|
|
/**
|
|
* 华为云SDK主类
|
|
* 用于管理华为云OBS实例
|
|
*/
|
|
declare class HuaweiYunSDK {
|
|
huaweiMap: Record<string, HuaweiYunInstance>;
|
|
constructor();
|
|
/**
|
|
* 获取或创建华为云实例
|
|
* @param accessKey Access Key ID
|
|
* @param accessSecret Access Key Secret
|
|
* @returns 华为云实例
|
|
*/
|
|
getInstance(accessKey: string, accessSecret: string): HuaweiYunInstance;
|
|
/**
|
|
* 移除指定的华为云实例
|
|
* @param accessKey Access Key ID
|
|
*/
|
|
removeInstance(accessKey: string): void;
|
|
/**
|
|
* 清除所有实例
|
|
*/
|
|
clearAllInstances(): void;
|
|
}
|
|
declare const SDK: HuaweiYunSDK;
|
|
export default SDK;
|
|
export { HuaweiYunInstance };
|