@cucumber/cucumber
Version:
The official JavaScript implementation of Cucumber.
15 lines (14 loc) • 1.02 kB
TypeScript
import { UsableEnvironment } from '../environment';
import { InternalPlugin, CoordinatorPluginEventValues, CoordinatorPluginEventKey, CoordinatorPluginTransformEventKey, Operation, FormatterPlugin } from './types';
export declare class PluginManager {
private readonly environment;
private handlers;
private cleanupFns;
constructor(environment: UsableEnvironment);
private register;
initFormatter<OptionsType>(plugin: FormatterPlugin<OptionsType>, options: OptionsType, stream: NodeJS.WritableStream, write: (buffer: string | Uint8Array) => void, directory?: string): Promise<void>;
initCoordinator<OptionsType>(operation: Operation, plugin: InternalPlugin<OptionsType>, options: OptionsType): Promise<void>;
emit<K extends CoordinatorPluginEventKey>(event: K, value: CoordinatorPluginEventValues[K]): void;
transform<K extends CoordinatorPluginTransformEventKey>(event: K, value: CoordinatorPluginEventValues[K]): Promise<CoordinatorPluginEventValues[K]>;
cleanup(): Promise<void>;
}