import { AddOptions } from "./add-cucumber-preprocessor-plugin"; import DataTable from "./data_table"; import { ConfigurationFileResolver, ICypressRuntimeConfiguration, IPreprocessorConfiguration } from "./preprocessor-configuration"; import { ICaseHookBody, ICaseHookOptions, IParameterTypeDefinition, IRunHookBody, IRunHookOptions, IStepDefinitionBody, IStepHookBody, IStepHookOptions } from "./public-member-types"; declare function defineStep(description: string | RegExp, implementation: IStepDefinitionBody): void; declare function runStepDefinition(world: Mocha.Context, text: string, argument?: DataTable | string): void; declare function defineParameterType(options: IParameterTypeDefinition): void; declare function defineBefore(options: string, fn: ICaseHookBody): void; declare function defineBefore(options: ICaseHookOptions, fn: ICaseHookBody): void; declare function defineBefore(fn: ICaseHookBody): void; declare function defineAfter(options: string, fn: ICaseHookBody): void; declare function defineAfter(options: ICaseHookOptions, fn: ICaseHookBody): void; declare function defineAfter(fn: ICaseHookBody): void; declare function defineBeforeStep(options: string, fn: IStepHookBody): void; declare function defineBeforeStep(options: IStepHookOptions, fn: IStepHookBody): void; declare function defineBeforeStep(fn: IStepHookBody): void; declare function defineAfterStep(options: string, fn: IStepHookBody): void; declare function defineAfterStep(options: IStepHookOptions, fn: IStepHookBody): void; declare function defineAfterStep(fn: IStepHookBody): void; declare function defineBeforeAll(options: IRunHookOptions, fn: IRunHookBody): void; declare function defineBeforeAll(fn: IRunHookBody): void; declare function defineAfterAll(options: IRunHookOptions, fn: IRunHookBody): void; declare function defineAfterAll(fn: IRunHookBody): void; export declare function attach(data: string | ArrayBuffer, mediaTypeOrOptions?: string | { mediaType: string; fileName?: string; }): Cypress.Chainable; export declare function log(text: string): Cypress.Chainable; export declare function link(text: string): Cypress.Chainable; declare function isFeature(): boolean; declare function doesFeatureMatch(expression: string): boolean; export { defineAfter as After, defineAfterAll as AfterAll, defineAfterStep as AfterStep, defineBefore as Before, defineBeforeAll as BeforeAll, defineBeforeStep as BeforeStep, DataTable, defineParameterType, defineStep, doesFeatureMatch, defineStep as Given, isFeature, runStepDefinition as Step, defineStep as Then, defineStep as When, }; export { IPreprocessorConfiguration }; export declare function resolvePreprocessorConfiguration(cypressConfig: ICypressRuntimeConfiguration, environment: Record, implicitIntegrationFolder: string, configurationFileResolver?: ConfigurationFileResolver): Promise; export declare function addCucumberPreprocessorPlugin(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions, options?: AddOptions): Promise; export declare function beforeRunHandler(config: Cypress.PluginConfigOptions): Promise; export declare function afterRunHandler(config: Cypress.PluginConfigOptions): Promise; export declare function beforeSpecHandler(config: Cypress.PluginConfigOptions, spec: Cypress.Spec): Promise; export declare function afterSpecHandler(config: Cypress.PluginConfigOptions, spec: Cypress.Spec, results: CypressCommandLine.RunResult): Promise; export declare function afterScreenshotHandler(config: Cypress.PluginConfigOptions, details: Cypress.ScreenshotDetails): Promise;