/** * Playwright-style steps. */ import { KeyValue } from '../../playwright/types'; import { ParametersExceptFirst } from '../../utils/types'; import { StepPattern, GherkinStepKeyword, AnyFunction } from '../stepDefinition'; import { StepConstructorOptions, StepDefinitionArgs } from './shared'; export type PlaywrightStyleStepFn = (this: Record, fixtures: T & W, ...args: any[]) => unknown; export type PlaywrightStyleStepCtor = (...args: StepDefinitionArgs) => ReturnType>; export declare function playwrightStepCtor(keyword: GherkinStepKeyword, { customTest, defaultTags }: StepConstructorOptions): (...args: StepDefinitionArgs) => (this: any, ...args: Parameters extends [] ? [] : [Partial[0]>, ...ParametersExceptFirst]) => unknown; /** * Returns wrapped step function to be called from other steps. * See: https://github.com/vitalets/playwright-bdd/issues/110 */ declare function getCallableStepFn(pattern: StepPattern, fn: StepFn): (this: any, ...args: Parameters extends [] ? [] : [Partial[0]>, ...ParametersExceptFirst]) => unknown; export {}; //# sourceMappingURL=playwrightStyle.d.ts.map