//#region types/Step.d.ts type StepFn = (this: TContext) => void | Promise; type StepArray = Array>; type StepObject = { [name: string]: StepFn; }; type Step = StepObject | StepArray; type ThenStepWithExpectError = { expect_error: (this: TContext, error: Error) => void | Promise; and?: Step; }; type ThenStep = ThenStepWithExpectError | Omit, "and" | "expect_error"> | StepArray; //#endregion //#region types/scenario/Scenario.d.ts type GivenScenarioDefinition = { given?: Step; scenario: Step; expect_error?: (this: TContext, error: Error) => void | Promise; }; type GivenScenarioWhenThenDefinition = { given?: Step; scenario: ScenarioStep; }; type GivenScenarioTest = GivenScenarioDefinition | GivenScenarioWhenThenDefinition; type ScenarioWhenStep = { name?: string; when: Step; then: ThenStep; }; type ScenarioThenWhenStep = { name?: string; then_when: Step; then: ThenStep; }; type ScenarioStep = [ScenarioWhenStep, ...ScenarioThenWhenStep[]]; //#endregion //#region types/gherkin/Gherkin.d.ts type GherkinTest = { given?: Step; when?: Step; then?: ThenStep; }; //#endregion //#region types/Gwt.d.ts type GwtDefinition = GherkinTest | GivenScenarioTest; type TestFunction = (name: string, callback: (...args: any[]) => void | Promise) => unknown; type ConfigureTestFunction = (context: TContextBase, ...args: any[]) => any; //#endregion //#region src/gwt.d.ts declare const gwtRunner: (testFunc: TestFunction, configureTestFunc?: ConfigureTestFunction) => (name: string, gwtDefinition: GwtDefinition) => void; //#endregion //#region src/contextProvider/Context.d.ts declare class Context { parent?: Context | undefined; context: Partial; constructor(parent?: Context | undefined); getChild(): Context; } //#endregion //#region src/contextProvider/ContextProvider.d.ts declare class ContextProvider { activeContext?: Context; get context(): Partial | undefined; createContext: () => void; releaseContext: () => void; } //#endregion //#region src/contextProvider/index.d.ts declare const TestContext: ContextProvider; //#endregion export { type GherkinTest as GherkinDefinition, type GivenScenarioDefinition, type GivenScenarioTest, type GivenScenarioWhenThenDefinition, type GwtDefinition, type ScenarioStep, type ScenarioThenWhenStep, type ScenarioWhenStep, type Step, type StepFn, TestContext, type TestFunction, type ThenStep, type ThenStepWithExpectError, gwtRunner }; //# sourceMappingURL=index.d.cts.map