import { TestFailure } from '../types'; /** * Interface for the last run information */ interface LastRunInfo { status: string; failedTests: string[]; } /** * Interface for test failure history item */ interface TestFailureHistory extends TestFailure { timestamp?: string; } /** * Utility functions for working with test history */ export declare class HistoryUtils { /** * Retrieves information about the last test run * @param outputDir - Directory where test results are stored * @returns Information about the last test run, or null if not available */ static getLastRunInfo(outputDir?: string): LastRunInfo | null; /** * Checks if a particular test was failing in the previous run * @param testId - ID of the test to check * @param outputDir - Directory where test results are stored * @returns True if the test was failing in the previous run, false otherwise */ static wasTestFailingPreviously(testId: string, outputDir?: string): boolean; /** * Compares current test failures with previous run failures to identify new and fixed tests * @param currentFailures - List of currently failed test IDs * @param outputDir - Directory where test results are stored * @returns Object with lists of newly failing and fixed tests */ static compareWithPreviousRun(currentFailures: string[], outputDir?: string): { newlyFailing: string[]; fixed: string[]; }; /** * Gets the full test failure history * @param outputDir - Directory where test results are stored * @returns Array of test failures with timestamps */ static getTestFailureHistory(outputDir?: string): TestFailureHistory[]; } export {};