import { BasePlugin } from '@midwayjs/command-core'; import { CommandOptions } from '../../interface'; interface LookupFileOptions { pathOnly?: boolean; rootDir?: string; predicate?: (file: string) => boolean; } export declare function lookupFile(dir: string, formats: string[], options?: LookupFileOptions): string | undefined; export declare class BuildPlugin extends BasePlugin { options: CommandOptions; private pages; private env; private midwayConfig; private viteCofigs; private rootDir; commands: { build: { lifecycleEvents: string[]; options: { type: { usage: string; shortcut: string; }; config: { usage: string; }; outDir: { usage: string; }; viteConfigFile: { usage: string; }; viewDir: { usage: string; }; prefix: { usage: string; }; outPrefix: { usage: string; }; staticFileKey: { usage: string; }; root: { usage: string; shortcut: string; }; }; }; }; hooks: { 'build:formatOptions': any; 'build:setFile': any; 'build:run': any; }; initEnv(): void; getConfig(): Promise; getViteFilePath(filePath?: string): string; getViteConfig(path?: string): Promise; formatOptions(): Promise; setFile(): Promise; run(): Promise; buildClient(input: string[], prefix: string, outDir: string, viteConfigFile: string): Promise; buildSSR(entryServers: string[], prefix: string, outDir: string, viteConfigFile: string): Promise; setFileByConfig(): Promise; setFileByFileName(): Promise; private getDiskPath; } export {};