import { C as CoveragePort, a as CoverageParseResult } from './coverage-port-DTXJNDB0.js'; import './types-ZDtydC8W.js'; type CoverageFormat = "istanbul" | "v8" | "unknown"; declare function detectCoverageFormat(data: unknown): CoverageFormat; declare class IstanbulCoverageAdapter implements CoveragePort { private readonly cwd; constructor(cwd?: string); parse(data: unknown, _sources?: ReadonlyMap): CoverageParseResult; } declare class V8CoverageAdapter implements CoveragePort { private readonly cwd; constructor(cwd?: string); parse(data: unknown, sources?: ReadonlyMap): CoverageParseResult; private validateAndExtractScripts; private processScript; } declare class CoverageParseError extends Error { readonly filePath?: string; constructor(message: string, filePath?: string, options?: ErrorOptions); } declare class UnsupportedFormatError extends Error { constructor(detail?: string); } type UserFormat = Exclude; interface ParseCoverageOptions { readonly format?: UserFormat; readonly sources?: ReadonlyMap; readonly cwd?: string; } type ParseCoverageResult = CoverageParseResult; declare function createAutoDetectCoveragePort(cwd?: string): CoveragePort; declare function parseCoverage(data: object, options?: ParseCoverageOptions): ParseCoverageResult; declare function parseCoverageFile(filePath: string, options?: ParseCoverageOptions): Promise; export { type CoverageFormat, CoverageParseError, IstanbulCoverageAdapter, type ParseCoverageOptions, type ParseCoverageResult, UnsupportedFormatError, V8CoverageAdapter, createAutoDetectCoveragePort, detectCoverageFormat, parseCoverage, parseCoverageFile };