import type { MPPackSetting, ICompileActionOptions } from "xhs-mp-pack"; import type { Project } from "xhs-mp-project"; import { FeatureReporter } from 'xhs-mp-shared'; export declare enum ENV { development = 0, production = 1 } export interface Component { index?: number; usingComponents?: { [key: string]: string; }; componentPlaceholder?: { [key: string]: string; }; } export interface Page { path: string; usingComponents?: { [key: string]: string; }; componentPlaceholder?: { [key: string]: string; }; } export interface SubPackage { root: string; pages: Page[]; independent?: boolean; } export declare enum CodePackageMode { default = "default", requiredComponents = "requiredComponents" } export interface AppJSON { pages: Page[]; subPackages: SubPackage[]; subpackages: SubPackage[]; usingComponents?: { [key: string]: string; }; lazyCodeLoading?: CodePackageMode; componentsMap: { [key: string]: Component; }; xhsVersionStrategy: { [key: string]: string | boolean; }; } export type ICompilerConfig = ICompileActionOptions & { projectPath: string; miniprogramDir: string; distDir?: string; enablePersistCache?: boolean; cacheDirectory?: string; noJs?: boolean; mpUploadOptions?: any; port?: number; }; type CliPick = 'action' | 'projectPath' | 'distDir' | 'tsConfigPath' | 'cacheDirectory' | 'compressCss' | 'compressJs' | 'enableSourcemap' | 'appendSourcemapComment' | 'enableV1' | 'enableV2' | 'enableVDom' | 'mpUploadOptions'; export interface IStart extends Pick { packMode?: 'webpack' | 'mp-pack'; callback?: () => void; platform?: 'wx' | 'xhs'; enableDevServer?: boolean; devServerPort?: number; entryType?: string; } export type IPresetOptions = { packMode: string; project: Project; packSetting: MPPackSetting; otherSetting?: any; reporter?: FeatureReporter.IReporter; entryType?: string; }; export {};