/** * Retry Vault Integration * * Stores retry history and statistics in the Evidence Vault. */ import type { Database } from 'sqlite3'; import type { RetryResult, RetryHistoryRecord, RetryStatistics } from './types.js'; import { RetryStrategy } from './types.js'; /** * Retry Vault class */ export declare class RetryVault { private db; private dbRun; private dbAll; private dbGet; constructor(db: Database); /** * Initialize retry tables */ initialize(): Promise; /** * Store retry result */ storeRetryResult(runId: string, result: RetryResult, context?: { testName?: string; gate?: string; flakinessScore?: number; patternType?: string; }): Promise; /** * Get retry history for a test */ getRetryHistory(testId: string, limit?: number): Promise; /** * Get retry history for a run */ getRetryHistoryForRun(runId: string): Promise; /** * Get retry statistics */ getStatistics(days?: number): Promise; /** * Get strategy performance */ getStrategyPerformance(days?: number): Promise>; /** * Get most retried tests */ getMostRetriedTests(limit?: number, days?: number): Promise>; /** * Update daily statistics */ private updateStatistics; /** * Map database rows to RetryHistoryRecord objects */ private mapRowsToRecords; /** * Delete old retry history */ deleteOldHistory(olderThanMs: number): Promise; }