export interface DeployCloudFunctionOptions { /** * 小程序appId */ appId: string; /** * 服务空间ID */ spaceId: string; /** * 本地函数根目录 */ project: string; /** * 云函数名 */ name: string; /** * 云函数描述 */ desc?: string; /** * 预览流程回调 */ onProgressUpdate?(info: { /** * LOCAL_PACKAGE: 本地打包成功 * UPLOAD_SUCCESS: 上传代码成功 * DEPLOY_SUCCESS: 部署成功 */ status: 'LOCAL_PACKAGE' | 'UPLOAD_SUCCESS' | 'DEPLOY_SUCCESS'; data: any; }): void; } export interface DeployCloudFunctionResult { /** * 云函数名称 */ name: string; /** * 部署id */ deploymentId: string; } export interface DeploymentCreateRes { success: boolean; code: string; message: string; deploymentId: string; uploadSignedUrl: string; } declare function deployCloudFunction(options: DeployCloudFunctionOptions): Promise; export default deployCloudFunction;