/** * LCOV (.info) coverage parser — Spec 15 R4. * * Parses LCOV tracefiles produced by Istanbul/nyc, c8, and similar tools. * Extracts per-file, per-line, and per-function coverage data. * * Format reference: https://ltp.sourceforge.net/coverage/lcov/geninfo.1.php */ export interface LcovEntry { /** Source file path (SF:) */ sourceFile: string; /** Array of [lineNumber, executionCount] tuples (DA:) */ lines: Array<[number, number]>; /** Map of function name → [line, hitCount] (FN: + FNDA:) */ functions: Map; /** Lines found (LF:) */ linesFound: number; /** Lines hit (LH:) */ linesHit: number; /** Test name (TN:) */ testName?: string; } /** * Parse an LCOV .info file string into structured entries. * One entry per `end_of_record` delimited record. */ export declare function parseLcov(content: string): LcovEntry[]; /** * Convert LCOV entries to a flat coverage map: * sourceFile → Set of covered line numbers. */ export declare function lcovToLineCoverage(entries: LcovEntry[]): Map>; /** * Convert LCOV entries to a flat set of covered function names per file. */ export declare function lcovToFunctionCoverage(entries: LcovEntry[]): Map>; //# sourceMappingURL=lcovParser.d.ts.map