/// import { Allure, AllureRuntime, AllureStep, AllureTest, AttachmentOptions, ExecutableItemWrapper, Severity, Status, StepInterface } from 'allure-js-commons'; import StepWrapper from './step-wrapper'; import type AllureReporter from './allure-reporter'; /** * Supported content types for Allure attachments. * * _This enum was copied and extended from allure-js-commons_ */ export declare enum ContentType { TEXT = "text/plain", XML = "application/xml", CSV = "text/csv", TSV = "text/tab-separated-values", CSS = "text/css", URI = "text/uri-list", SVG = "image/svg+xml", PNG = "image/png", JSON = "application/json", WEBM = "video/webm", JPEG = "image/jpeg", HTML = "text/html" } export declare type Labels = { name: string; value: string; index?: number; }; export default class JestAllureInterface extends Allure { private readonly reporter; jiraUrl: string; tmsUrl: string; labels: Labels[]; constructor(reporter: AllureReporter, runtime: AllureRuntime, jiraUrl?: string); get currentExecutable(): AllureStep | AllureTest | ExecutableItemWrapper; set currentExecutable(executable: AllureStep | AllureTest | ExecutableItemWrapper); label(name: string, value: string, index?: number): void; severity(severity: Severity, index?: number): void; tag(tag: string, index?: number): void; owner(owner: string, index?: number): void; lead(lead: string, index?: number): void; epic(epic: string, index?: number): void; feature(feature: string, index?: number): void; story(story: string, index?: number): void; issue(name: string): void; tms(name: string): void; startStep(name: string): StepWrapper; step(name: string, body: (step: StepInterface) => T): T; logStep(name: string, status: Status, attachments?: Array<{ name: string; content: Buffer | string; type: ContentType | string | AttachmentOptions; }>): void; description(markdown: string): void; descriptionHtml(html: string): void; attachment(name: string, content: Buffer | string, type: ContentType | string | AttachmentOptions): void; testAttachment(name: string, content: Buffer | string, type: ContentType | string | AttachmentOptions): void; get currentTest(): AllureTest; allureId(id: string, index?: number): void; }