import type { AuditTask, RepoManifest } from "../types.js"; /** * Sentinel line-count value marking a file as UNMEASURED (a read failure, or — * via {@link isUnmeasuredLineCount} — a key entirely absent from the index), * distinct from a genuine zero-line file (CP-NODE-6). Deliberately stays within * the `number` domain (`Record` is unchanged as the index's * shape, so no consumer's type signature needs to change to read it) while * every ordinary numeric comparison against it (`=== 0`, `<= 1`, `> 0`) is * `false` by IEEE 754 definition — an unmeasured entry can never be silently * read as a genuine empty file by an unaware call site. A schema-validated * contract field that can only ever hold a real count (`AuditTask.file_line_counts`, * `z.number().int().min(0)`) must never persist this value — see * `addFileLineCountHints` below, which is the boundary that degrades it to 0 * before the value crosses into that schema-constrained artifact. */ export declare const UNMEASURED_LINE_COUNT: number; /** * True when `value` denotes "unmeasured" rather than a genuine line count: * either the key is entirely ABSENT from the index (`undefined` — e.g. a * caller queries a path the index was never built for, or a normalization * mismatch against the index's key form) or present but marked * {@link UNMEASURED_LINE_COUNT} (a read failure). A real zero-line file reads * as `0`, which is neither. Prefer this predicate over a bare `?? 0` fallback * so a read failure or a missing key is never silently treated as a genuine * empty file — the distinction is a VALUE this module emits, not a habit each * call site must remember to reimplement (CP-NODE-6). */ export declare function isUnmeasuredLineCount(value: number | undefined): boolean; export declare function buildLineIndex(root: string, repoManifest: RepoManifest): Promise>; export declare function buildLineIndexForPaths(root: string, paths: string[]): Promise>; export declare function addFileLineCountHints(root: string, tasks: AuditTask[]): Promise; //# sourceMappingURL=lineIndex.d.ts.map