import type { Logger, Plugin } from "vite"; import type { AppConfig } from "../types/app-config"; import { DeployType } from "../types/mini-app"; export interface BuildAppInput { cwd: string; mode?: string; target?: DeployType; appId: string; nextVersion?: string | number; currentVersion?: number; appConfig: AppConfig; outDir: string; vite2RollupPlugins?: Plugin[]; customLogger?: Partial; } export declare function buildApp({ cwd, mode, appId, nextVersion, currentVersion, appConfig, outDir, vite2RollupPlugins, customLogger, target, }: BuildAppInput): Promise<{ result: import("rollup").RollupOutput; appConfigJson: { listCSS: any[]; listSyncJS: any[]; listAsyncJS: any[]; app: import("../types/app-config").AppConfigApp; debug: boolean; pages?: string[] | undefined; template?: Record | undefined; }; } | { result: import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher; appConfigJson?: undefined; } | undefined>;