interface CommonConfig { /** * 服务端地址 * @default 'https://ideservice.alipay.com' */ endpoint?: string; /** * 请求代理地址 */ proxy?: string; } interface Config extends CommonConfig { /** * 工具id */ toolId?: string; /** * 工具私钥 */ privateKey?: string; /** * 当前小程序配置 */ mini?: { appId: string; appName: string; }; /** * 当前云服务空间 */ cloud?: { spaceId: string; spaceName: string; }; } /** * CLI模式下,工具信息配置,使用工具前必须配置 */ export declare function setCliConfig(options: Config): string; export declare function setRunAtCli(): void; export declare function getRunAt(): string; interface SDKConfig extends CommonConfig { /** * 工具id */ toolId: string; /** * 工具私钥 */ privateKey: string; } /** *工具信息配置,使用工具前必须配置 */ export declare function setConfig(options: SDKConfig): void; /** * 根据运行环境,获取配置 */ export declare function getConfigByRunEnv(): Promise; export declare function getCliConfigSync(): Config; export declare function getConfigByRunEnvSync(): Config; export {};