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; }; } declare type BeforeSend = (req: any) => any; interface RequestOptions { method: 'GET' | 'POST' | 'PUT'; host?: 'ide' | 'openhome'; path: string; beforeSend?: BeforeSend; data?: object; needSign?: boolean; } export declare function getConfigByRunEnv(): Promise; export declare function baseRequest(options: RequestOptions): Promise<{ headers: any; body: T; }>; export {};