UNPKG

974 BTypeScriptView Raw
1/// <reference types="node" />
2/// <reference types="node" />
3import { PathLike } from "fs";
4import { AllureConfig } from "./AllureConfig.js";
5import { AllureGroup } from "./AllureGroup.js";
6import { AttachmentOptions, Category, ContentType, TestResult, TestResultContainer } from "./model.js";
7import { AllureWriter } from "./writers/index.js";
8export declare class AllureRuntime {
9 private config;
10 writer: AllureWriter;
11 constructor(config: AllureConfig);
12 startGroup(name?: string): AllureGroup;
13 writeResult(result: TestResult): void;
14 writeGroup(result: TestResultContainer): void;
15 writeAttachment(content: Buffer | string, options: ContentType | string | AttachmentOptions, encoding?: BufferEncoding): string;
16 writeAttachmentFromPath(fromPath: PathLike, options: ContentType | string | AttachmentOptions): string;
17 writeEnvironmentInfo(info?: Record<string, string>): void;
18 writeCategoriesDefinitions(categories: Category[]): void;
19}