import type { OnTestPassHookResult, OnTestPassContext } from '../../../types/file-hooks.js';
/**
 * Get previous coverage cache (for testing).
 */
export declare function getPreviousCoverage(coveragePath: string): Record<string, number> | undefined;
/**
 * Clear previous coverage cache (for testing).
 */
export declare function clearPreviousCoverage(): void;
/**
 * Parse coverage-summary.json and extract per-file line coverage percentage.
 */
export declare function parseCoverageSummary(coveragePath: string): Promise<Record<string, number>>;
/**
 * Compute coverage delta per file.
 */
export declare function computeCoverageDelta(current: Record<string, number>, previous: Record<string, number>): Record<string, number>;
/**
 * Map coverage files to spec IDs via annotation index.
 */
export declare function mapFilesToSpecs(files: string[], annotationIndex: {
    specId: string;
    annotatedFiles: string[];
}[]): string[];
/**
 * Handle on-test-pass event.
 * - Reads coverage-summary.json
 * - Computes coverage delta per file
 * - Maps changed files to specs via annotations
 * - Returns coverage delta and updated specs
 */
export declare function handleOnTestPass(ctx: OnTestPassContext): Promise<OnTestPassHookResult>;
//# sourceMappingURL=on-test-pass.d.ts.map