import { CompileError } from '../common'; export declare type MainCommand = (options: { isBuild: boolean; outDir: string; preloadScript?: string; entryPath: string; esbuildConfigFile?: string /** Config js file to use with esbuild */; format?: 'cjs' | 'esm'; }, reportError: (...errs: CompileError[]) => void, buildStart: () => void, buildComplete: (dir: string, count: number) => void, notFoundTSConfig: () => Promise) => Promise;