/** * TODO: need to ensure the stack trace correctly get the right line number asnd position * from the error for determining the step label * This module adds the ability to auto extract the step labels for a more fluent experience */ import { Scenario } from './scenario'; export { Scenario }; declare type TestFunc = () => Promise | void; declare type StepBody = TestFunc | Promise; export declare function Given(labelOrStep: string | StepBody, stepBody?: StepBody): import("./scenario").Step; export declare function When(labelOrStep: string | StepBody, stepBody?: StepBody): import("./scenario").Step; export declare function Then(labelOrStep: string | StepBody, stepBody?: StepBody): import("./scenario").Step; export declare function And(labelOrStep: string | StepBody, stepBody?: StepBody): import("./scenario").Step; /** * Given a function, extract the embedded 'doc string'. E.g. * * function myFunc(){ * "This function is here as an exampple, and this is a * docstring. It can start with single, double, or back quote and be multipe lines" * } */ export declare function extractFunctionDocs(func: Function, maxLinesToRead?: number): string | undefined; /** * Extracts the calling code line * {@link https://github.com/evanw/node-source-map-support usable by typescript node-source-map-support module} * {@link https://github.com/mozilla/source-map/ Mozilla source-map library & project} * {@link http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ good introduction to sourcemaps} */ export declare function extractLabelFromSource(skipStacksFrames?: number): string | undefined;