import type { Command } from 'cac'; /** * Apply common options for all commands */ export declare const commonOptions: (command: Command) => Command; export type CommonOptions = { config?: string; configName?: string[]; configLoader?: string; env?: Record | string[]; nodeEnv?: string; }; export declare const normalizeCommonOptions: (options: CommonOptions | CommonOptionsForBuildAndServe, action: "serve" | "build" | "preview") => void; /** * Apply common options for `build` and `serve` commands */ export declare const commonOptionsForBuildAndServe: (command: Command) => Command; export type CommonOptionsForBuildAndServe = CommonOptions & { analyze?: boolean; devtool?: string | boolean; entry?: string[]; mode?: string; outputPath?: string; profile?: boolean; watch?: boolean; }; export declare function setDefaultNodeEnv(options: { nodeEnv?: unknown; }, defaultEnv: string): void;