export declare const TIA_DIR = "tia"; export declare const TIA_MAP_FILE = "map.json"; export declare const TIA_LAST_RECORDED_DAY_FILE = "last-recorded-day"; export interface TiaMap { version: 1; head_sha: string; recorded_at: string; instrumented_seconds: number; /** repo-relative path -> sha256 of its content at record time */ file_hashes: Record; /** test file (repo-relative) -> source files it executed */ tests: Record; } /** Built-in convention for what counts as a test file. */ export declare function isTestPath(rel: string): boolean; export declare function tiaMapPath(mqDir: string): string; export declare function readTiaMap(mqDir: string): TiaMap | null; export declare function writeTiaMap(mqDir: string, map: TiaMap): void; export declare function hashContent(buf: Buffer): string; /** Parse NODE_V8_COVERAGE dumps. Attribution model: vitest/jest with an * isolating pool run each test FILE in its own process, so each per-process * dump containing test file T maps T to every project source the process * loaded. Coarser pools (many test files per process) degrade to * OVER-selection — never under-selection. */ export declare function buildTiaMap(opts: { coverageDir: string; projectRoot: string; headSha: string; seconds: number; now: string; }): TiaMap; //# sourceMappingURL=map.d.ts.map