import { TestCase, TestResult } from '@playwright/test/reporter'; import { TestResultType } from 'qase-javascript-commons'; import { ReporterOptionsType } from './options'; import { StepConverter } from './step-converter'; import { TestCaseMetadata } from './metadata-extractor'; export interface BuildArgs { test: TestCase; result: TestResult; metadata: TestCaseMetadata; annotations: { ids: number[]; projectMapping: Record | null; suites: string[]; }; /** Contents of Playwright's error-context.md, already truncated; null when there is none. */ errorContext?: string | null; options: ReporterOptionsType; isCaptureLogs: boolean; qaseIdsRegistry: ReadonlyMap; } export declare class ResultBuilder { private readonly stepConverter; constructor(stepConverter: StepConverter); build(args: BuildArgs): TestResultType | null; }