import { EventEmitter } from "events"; import { IPackageManager, IPackageInstallationManager, IOptions } from "../../declarations"; import { IPlatformData } from "../../definitions/platform"; import { BundlerType, IProjectConfigService, IProjectData } from "../../definitions/project"; import { IErrors, IChildProcess, IFileSystem, IHooksService, IHostInfo } from "../../common/declarations"; import { ICleanupService } from "../../definitions/cleanup-service"; import { ViteHmrPortService } from "../../contracts/vite-hmr-port-service"; export declare class BundlerCompilerService extends EventEmitter implements IBundlerCompilerService { private $options; private $errors; private $childProcess; $fs: IFileSystem; $hooksService: IHooksService; $hostInfo: IHostInfo; private $logger; private $mobileHelper; private $cleanupService; private $packageManager; private $packageInstallationManager; private $projectConfigService; private $viteHmrPortService; private bundlerProcesses; private viteServeProcesses; private expectedHashes; constructor($options: IOptions, $errors: IErrors, $childProcess: IChildProcess, $fs: IFileSystem, $hooksService: IHooksService, $hostInfo: IHostInfo, $logger: ILogger, $mobileHelper: Mobile.IMobileHelper, $cleanupService: ICleanupService, $packageManager: IPackageManager, $packageInstallationManager: IPackageInstallationManager, $projectConfigService: IProjectConfigService, $viteHmrPortService: ViteHmrPortService); private getViteDistRelativeDir; private getViteDistOutputPath; private getViteBuildPaths; compileWithWatch(platformData: IPlatformData, projectData: IProjectData, prepareData: IPrepareData): Promise; compileWithoutWatch(platformData: IPlatformData, projectData: IProjectData, prepareData: IPrepareData): Promise; stopBundlerCompiler(platform: string): Promise; private shouldUsePreserveSymlinksOption; private startBundleProcess; private isViteHmrSession; private getViteChildEnv; private startViteDevServer; private waitForPort; private buildEnvData; private buildEnvCommandLineParams; getUpdatedEmittedFiles(allEmittedFiles: string[], chunkFiles: string[], nextHash: string, platform: string): { emittedFiles: string[]; fallbackFiles: string[]; hash: string; }; private getCurrentHotUpdateHash; private stopBundlerForPlatform; private handleHMRMessage; private getBundlerExecutablePath; private getBundlerPackageName; private isModernBundler; getBundler(): BundlerType; private copyViteBundleToNative; private getIncrementalFilesToCopy; private copyRecursiveSync; }