/** * Test coverage parser. Reads lcov, istanbul JSON, and cobertura XML formats. * Maps coverage data to source files for "is this code tested?" queries. */ export interface FileCoverage { file: string; lines: { total: number; covered: number; percentage: number; }; functions: { total: number; covered: number; percentage: number; }; branches: { total: number; covered: number; percentage: number; }; uncoveredLines: number[]; uncoveredFunctions: string[]; } export interface CoverageSummary { format: string; totalFiles: number; lines: { total: number; covered: number; percentage: number; }; functions: { total: number; covered: number; percentage: number; }; branches: { total: number; covered: number; percentage: number; }; files: FileCoverage[]; } /** * Auto-detect and parse coverage from common file locations. * @param cwd - The working directory to scan. * @returns The parsed coverage summary, or null if no coverage data found. */ export declare function parseCoverage(cwd: string): Promise; /** * Get coverage for a specific file. * @param summary - The coverage summary to search. * @param filePath - The file path to look up. * @returns The file coverage data, or null if not found. */ export declare function getFileCoverage(summary: CoverageSummary, filePath: string): FileCoverage | null; /** * Find untested files (no coverage data or 0% coverage). * @param summary - The coverage summary to search. * @returns Array of file paths with zero coverage. */ export declare function getUntestedFiles(summary: CoverageSummary): string[]; /** * Detect test file locations via naming conventions. * @param cwd - The working directory to scan. * @returns Array of test file paths. */ export declare function findTestFiles(cwd: string): Promise; //# sourceMappingURL=coverage.d.ts.map