import { World } from "@cucumber/cucumber"; import type { ParameterOptions } from "allure-js-commons"; /** * @deprecated please use api exported by "allure-js-commons" instead. */ export interface AllureCucumberLegacyApi { label: (name: string, value: string) => Promise; link: (type: string, url: string, name?: string) => Promise; parameter: (name: string, value: string, options?: ParameterOptions) => Promise; description: (markdown: string) => Promise; descriptionHtml: (html: string) => Promise; testCaseId: (id: string) => Promise; historyId: (id: string) => Promise; allureId: (id: string) => Promise; displayName: (name: string) => Promise; attachment: (name: string, content: Buffer | string, type: string) => Promise; issue: (name: string, url: string) => Promise; tms: (name: string, url: string) => Promise; epic: (name: string) => Promise; feature: (name: string) => Promise; story: (name: string) => Promise; suite: (name: string) => Promise; parentSuite: (name: string) => Promise; subSuite: (name: string) => Promise; owner: (name: string) => Promise; severity: (name: string) => Promise; layer: (name: string) => Promise; tag: (name: string) => Promise; step: (name: string, body: () => Promise) => Promise; } /** * @deprecated please use api exported by "allure-js-commons" instead. */ export declare class AllureCucumberWorld extends World implements AllureCucumberLegacyApi { /** * @deprecated please use import { label } from "allure-js-commons" instead. */ label: (name: string, value: string) => Promise; /** * @deprecated please use import { link } from "allure-js-commons" instead. */ link: (type: string, url: string, name?: string) => Promise; /** * @deprecated please use import { parameter } from "allure-js-commons" instead. */ parameter: (name: string, value: string, options?: ParameterOptions) => Promise; /** * @deprecated please use import { description } from "allure-js-commons" instead. */ description: (value: string) => Promise; /** * @deprecated please use import { descriptionHtml } from "allure-js-commons" instead. */ descriptionHtml: (html: string) => Promise; /** * @deprecated please use import { testCaseId } from "allure-js-commons" instead. */ testCaseId: (id: string) => Promise; /** * @deprecated please use import { historyId } from "allure-js-commons" instead. */ historyId: (id: string) => Promise; /** * @deprecated please use import { allureId } from "allure-js-commons" instead. */ allureId: (id: string) => Promise; /** * @deprecated please use import { displayName } from "allure-js-commons" instead. */ displayName: (name: string) => Promise; /** * @deprecated please use import { attachment } from "allure-js-commons" instead. */ attachment: (name: string, content: Buffer | string, type: string) => Promise; /** * @deprecated please use import { issue } from "allure-js-commons" instead. */ issue: (name: string, url: string) => Promise; /** * @deprecated please use import { tms } from "allure-js-commons" instead. */ tms: (name: string, url: string) => Promise; /** * @deprecated please use import { epic } from "allure-js-commons" instead. */ epic: (name: string) => Promise; /** * @deprecated please use import { feature } from "allure-js-commons" instead. */ feature: (name: string) => Promise; /** * @deprecated please use import { story } from "allure-js-commons" instead. */ story: (name: string) => Promise; /** * @deprecated please use import { suite } from "allure-js-commons" instead. */ suite: (name: string) => Promise; /** * @deprecated please use import { parentSuite } from "allure-js-commons" instead. */ parentSuite: (name: string) => Promise; /** * @deprecated please use import { subSuite } from "allure-js-commons" instead. */ subSuite: (name: string) => Promise; /** * @deprecated please use import { owner } from "allure-js-commons" instead. */ owner: (name: string) => Promise; /** * @deprecated please use import { severity } from "allure-js-commons" instead. */ severity: (name: string) => Promise; /** * @deprecated please use import { layer } from "allure-js-commons" instead. */ layer: (name: string) => Promise; /** * @deprecated please use import { tag } from "allure-js-commons" instead. */ tag: (name: string) => Promise; /** * @deprecated please use import { step } from "allure-js-commons" instead. */ step: (name: string, body: () => any) => Promise; }