/**
 * Copyright Microsoft Corporation. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { ipc, ProcessRunner } from '../common';
export declare class WorkerMain extends ProcessRunner {
    private _params;
    private _config;
    private _project;
    private _poolBuilder;
    private _fixtureRunner;
    private _fatalErrors;
    private _skipRemainingTestsInSuite;
    private _didRunFullCleanup;
    private _stoppedDueToUnhandledErrorInTestFail;
    private _isStopped;
    private _runFinished;
    private _currentTest;
    private _lastRunningTests;
    private _totalRunningTests;
    private _activeSuites;
    private _resumePromise?;
    constructor(params: ipc.WorkerInitParams);
    private _stop;
    gracefullyClose(): Promise<void>;
    private _appendProcessTeardownDiagnostics;
    unhandledError(error: Error | any): void;
    private _loadIfNeeded;
    runTestGroup(runPayload: ipc.RunPayload): Promise<void>;
    customMessage(payload: ipc.CustomMessageRequestPayload): Promise<ipc.CustomMessageResponsePayload>;
    resume(payload: ipc.ResumePayload): void;
    private _runTest;
    private _collectHooksAndModifiers;
    private _runBeforeAllHooksForSuite;
    private _runAllHooksForSuite;
    private _runAfterAllHooksForSuite;
    private _runEachHooksForSuites;
}
export declare const create: (params: ipc.WorkerInitParams) => WorkerMain;
//# sourceMappingURL=workerMain.d.ts.map