import { ParameterType } from '@cucumber/cucumber-expressions'; import * as messages from '@cucumber/messages'; import { MakeErrorMessage } from './ErrorMessageGenerator'; import IClock from './IClock'; import IParameterTypeDefinition from './IParameterTypeDefinition'; import IStopwatch from './IStopwatch'; import { AnyBody, HookOptions, IHook, IStepDefinition } from './types'; /** * This class provides an API for defining step definitions and hooks. */ export default class SupportCode { readonly newId: messages.IdGenerator.NewId; readonly clock: IClock; readonly stopwatch: IStopwatch; readonly makeErrorMessage: MakeErrorMessage; readonly parameterTypes: Array>; readonly parameterTypeMessages: Array; readonly stepDefinitions: IStepDefinition[]; readonly beforeHooks: IHook[]; readonly afterHooks: IHook[]; private readonly parameterTypeRegistry; private readonly expressionFactory; readonly undefinedParameterTypeMessages: messages.Envelope[]; constructor(newId?: messages.IdGenerator.NewId, clock?: IClock, stopwatch?: IStopwatch, makeErrorMessage?: MakeErrorMessage); defineParameterType(sourceReference: messages.SourceReference, parameterTypeDefinition: IParameterTypeDefinition): void; defineStepDefinition(sourceReference: messages.SourceReference, expression: string | RegExp, body: AnyBody): void; registerStepDefinition(stepDefinition: IStepDefinition): void; defineBeforeHook(sourceReference: messages.SourceReference, tagExpressionOptionsOrBody: string | HookOptions | AnyBody, body?: AnyBody): void; registerBeforeHook(hook: IHook): void; defineAfterHook(sourceReference: messages.SourceReference, tagExpressionOptionsOrBody: string | HookOptions | AnyBody, body?: AnyBody): void; registerAfterHook(hook: IHook): void; private makeHook; } //# sourceMappingURL=SupportCode.d.ts.map