import type { Logger } from "vite"; import { HttpOperation } from "../types/common"; import { DeployType } from "../types/mini-app"; import { UploadAppInput } from "../http/upload-app"; export interface DeployZMPInput { isCustom: false; } export interface DeployCustomProjectInput { isCustom: true; outputDir?: string; } export type DeployInput = (DeployZMPInput | DeployCustomProjectInput) & { cwd: string; target: DeployType; description?: string; customLogger?: Partial; } & Pick; /** * Common deploy logic for all DevTools (CLI & Extension) to reuse. The purpose of this common logic is for further modifications to be made in 1 place. * IMPORTANT: Make sure the outputDir exists. So if it is a normal ZMP project (not a custom project), this function MUST only be called after a successful build. */ export declare function deploy(options: HttpOperation): Promise>;