export declare type StartOptions = { /** * 是否需要 reporter,编辑器需要此字段,默认设置为 false */ reporter: string; /** * 发布平台 */ target: "serverdebug" | "wxgame" | "web" | "server"; }; export declare type BuildOptions = {}; export declare type PublishOptions = {}; export declare type TargetOptions = { /** * 发布目标名称 */ name: "serverdebug" | "wxgame" | "web"; }; export declare type UpgradeOptions = {}; export declare type OptionsConfig = { method: string; description: string; options: { name: string; description: string; type: string; }[]; }[]; export declare class EgretCompiler { private cwd; static getOptionsConfig(): { method: string; description: string; options: { name: string; description: string; type: string; }[]; }[]; constructor(cwd: string); /** * 启动调试模式 */ start(options: StartOptions): Promise; /** * 构建 */ build(options: BuildOptions): Promise; /** * 发布 */ publish(options: PublishOptions): Promise; /** * 添加发布目标 */ target(options: TargetOptions): Promise; /** * 升级 */ upgrade(options: UpgradeOptions): Promise; }