import type { EventEmitter } from 'node:events'; import type { IdGenerator } from '@cucumber/messages'; import { type SourcedPickle } from '../assemble'; import type { SupportCodeLibrary } from '../support_code_library_builder/types'; import type { Runtime } from './index'; import type { RuntimeAdapter, RuntimeResult } from './types'; /** * Handles the high-level coordination of the test run on the main thread * @returns whether all hooks and test cases were successful * @remarks * For each phase of the test run, delegates to a {@link RuntimeAdapter} to handle * the work itself. Unaware of how the adapter distributes and executes work. */ export declare class Coordinator implements Runtime { private testRunStartedId; private eventBroadcaster; private newId; private sourcedPickles; private supportCodeLibrary; private filterStacktraces; private adapter; constructor(testRunStartedId: string, eventBroadcaster: EventEmitter, newId: IdGenerator.NewId, sourcedPickles: ReadonlyArray, supportCodeLibrary: SupportCodeLibrary, filterStacktraces: boolean, adapter: RuntimeAdapter); run(): Promise; }