export function getPackageVersion(): any; export const TEST_ID_REGEX: RegExp; export const SUITE_ID_REGEX: RegExp; export function ansiRegExp(): RegExp; export function truncate(s: any, size?: number): any; export function cleanLatestRunId(): any; export function isSameTest(test: any, t: any): boolean; export function fetchSourceCode(contents: any, opts?: {}): string; export function fetchSourceCodeFromStackTrace(stack?: string): string; export function fetchIdFromCode(code: any, opts?: {}): any; export function fetchIdFromOutput(output: any): any; export function fetchFilesFromStackTrace(stack?: string, checkExists?: boolean): string[]; export namespace fileSystem { function createDir(dirPath: any): void; function clearDir(dirPath: any): void; } export function foundedTestLog(app: any, tests: any): void; export function formatStep(step: any, shift?: number): any; export function getCurrentDateTime(): string; /** * Gets current git commit SHA * @returns {String|null} git commit SHA or null if not available */ export function getGitCommitSha(): string | null; /** * @param {String} testTitle - Test title * * @returns {String|null} testId */ export function getTestomatIdFromTestTitle(testTitle: string): string | null; export function humanize(text: any): any; /** * Checks whether a value is an HTTP(S) URL. * * Used for artifact handling: if a step artifact is already a remote URL, * it should not be uploaded again as a local file path. * * @param {*} value - Artifact value to validate * @returns {boolean} true when value starts with http:// or https:// */ export function isHttpUrl(value: any): boolean; export function isValidUrl(s: any): boolean; /** * @param {String} suiteTitle - suite title * * @returns {String|null} suiteId */ export function parseSuite(suiteTitle: string): string | null; /** * * @returns {String|null} latest run ID */ export function readLatestRunId(): string | null; /** * Used to remove color codes * @param {*} input * @returns */ export function removeColorCodes(input: any): any; /** * @param {Object} test - Test adapter object * * @returns {String|null} testInfo as one string */ export function specificTestInfo(test: any): string | null; export function storeRunId(runId: any): any; export namespace testRunnerHelper { function getNameOfCurrentlyRunningTest(): any; } export function transformEnvVarToBoolean(value: any): boolean; /** * Validates TESTOMATIO_SUITE environment variable format * @param {String} suiteId - suite ID to validate * @returns {String|null} validated suite ID or null if invalid */ export function validateSuiteId(suiteId: string): string | null; export function applyFilter(command: any, tests: any): any;