/**
 * @file Code coverage utilities for parsing v8 coverage data.
 */
import type { CodeCoverageResult, CoverageMetric, GetCodeCoverageOptions } from './types';
/**
 * Calculate coverage metric with percentage.
 */
export declare function calculateMetric(data: {
    covered: number;
    total: number;
}): CoverageMetric;
/**
 * Get code coverage metrics from v8 coverage-final.json.
 *
 * @throws {Error} When coverage file doesn't exist and generateIfMissing is
 *   false.
 * @throws {Error} When coverage data format is invalid.
 */
export declare function getCodeCoverage(options?: GetCodeCoverageOptions | undefined): Promise<CodeCoverageResult>;
