///
import { EventEmitter } from 'events';
import webpack from 'webpack';
import Runner from '../../../runner';
import { CompilationMessages } from '../utilities';
import Client from './client';
import Warmup from './warmup';
export interface Options {
debug?: string;
debugPort: number;
}
export default class Server extends EventEmitter {
private readonly config;
private readonly client;
private readonly warmup;
private readonly runner;
private readonly options;
private clientIsCompiling;
private startServerIsQueued;
private isDisposing;
private hasStarted;
private lastClientMessages;
private watcher;
private serverProcesses;
private serverEntryPoints;
constructor(config: webpack.Configuration, client: Client, warmup: Warmup, runner: Runner, options?: Partial);
run(): Promise;
on(event: 'compile', handler: () => void): this;
on(event: 'compile-error', handler: (stats: webpack.Stats, lastClientStats: CompilationMessages) => void): this;
on(event: 'compile-failed', handler: (error: Error) => void): this;
on(event: 'compile-succeeded', handler: (stats: webpack.Stats) => void): this;
emit(event: 'compile-error', stats: webpack.Stats, lastClientStats: CompilationMessages): boolean;
emit(event: 'compile-failed', error: Error): boolean;
emit(event: 'compile'): boolean;
emit(event: 'compile-succeeded', payload: webpack.Stats): boolean;
dispose(): Promise;
private startServers;
private killServers;
}
//# sourceMappingURL=server.d.ts.map