import { type CommandArgs, type HookStats, type Tag, type TestStats } from '@wdio/reporter'; import type { Options } from '@wdio/types'; import type { Label, StatusDetails } from 'allure-js-commons'; import { Status as AllureStatus } from 'allure-js-commons'; import CompoundError from './compoundError.js'; /** * Get allure test status by TestStat object * @param test {Object} - TestStat object * @param config {Object} - wdio config object * @private */ export declare const getTestStatus: (test: TestStats | HookStats, config?: Options.Testrunner) => AllureStatus; /** * Properly format error from different test runners * @param {object} test - TestStat object * @returns {Object} - error object * @private */ export declare const getErrorFromFailedTest: (test: TestStats | HookStats) => Error | CompoundError | undefined; export declare const getStatusDetailsFromFailedTest: (test: TestStats | HookStats) => StatusDetails | undefined; export declare const findLast: (arr: Array, predicate: (el: T) => boolean) => T | undefined; export declare const findLastIndex: (arr: T[], predicate: (el: T) => boolean) => number; export declare const isScreenshotCommand: (command: CommandArgs) => boolean; export declare const convertSuiteTagsToLabels: (tags: string[] | Tag[]) => Label[]; export declare const last: (arr: T[]) => T; export declare const getCid: () => string; export declare const fromUrlish: (p: string) => string; export declare const absPosix: (p: string) => string; export declare const relNoSlash: (p?: string) => string; export declare const toFullName: (file: string, title: string) => string; /** * Normalize a browser/device family name for Allure historyId. * Vendor aliases such as `Google Chrome` / `googlechrome` collapse to `chrome` * so history stays stable across Appium and desktop capability spellings. */ export declare function normalizeCapabilityName(value: string): string; export declare function isObject(value: unknown): value is Record; export declare function isEmptyObject(value: unknown): boolean; export declare const toPackageLabel: (p?: string) => string; export declare const toPackageLabelCucumber: (p?: string) => string; //# sourceMappingURL=utils.d.ts.map