/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */importtype{Config}from'@jest/types';importtype{OnTestFailureasJestOnTestFailure,OnTestStartasJestOnTestStart,OnTestSuccessasJestOnTestSuccess,TestasJestTest,TestRunnerContextasJestTestRunnerContext,TestRunnerOptionsasJestTestRunnerOptions,TestWatcherasJestTestWatcher}from'./types';declarenamespaceTestRunner{typeTest=JestTest;typeOnTestFailure=JestOnTestFailure;typeOnTestStart=JestOnTestStart;typeOnTestSuccess=JestOnTestSuccess;typeTestWatcher=JestTestWatcher;typeTestRunnerContext=JestTestRunnerContext;typeTestRunnerOptions=JestTestRunnerOptions;}declareclassTestRunner{private_globalConfig;private_context;readonlyisSerial?:boolean;constructor(globalConfig:Config.GlobalConfig,context?:JestTestRunnerContext);runTests(tests:Array<JestTest>,watcher:JestTestWatcher,onStart:JestOnTestStart,onResult:JestOnTestSuccess,onFailure:JestOnTestFailure,options:JestTestRunnerOptions):Promise<void>;private_createInBandTestRun;private_createParallelTestRun;}export=TestRunner;