/// import { EventEmitter } from 'events'; import webpack from 'webpack'; import { BuildWorkspace } from '../config/build-workspace'; import Runner from '../../../runner'; import { CompilationMessages } from '../utilities'; export interface Options { debug: boolean; } export default class ServiceWorker extends EventEmitter { private readonly config; private readonly workspace; private readonly runner; constructor(config: webpack.Configuration, workspace: BuildWorkspace, runner: Runner); 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; private log; private debug; } //# sourceMappingURL=service-worker.d.ts.map