import { CompoundEntityRef } from '@backstage/catalog-model';
export type JsonCodeCoverage = {
    metadata: CoverageMetadata;
    entity: CompoundEntityRef;
    files: Array<FileEntry>;
};
export type JsonCoverageHistory = {
    entity: CompoundEntityRef;
    history: Array<AggregateCoverage>;
};
export type CoverageHistory = {
    line: {
        available: number;
        covered: number;
    };
    branch: BranchHit;
};
export type CoverageMetadata = {
    vcs: {
        type: string;
        location: string;
    };
    generationTime: number;
};
export type BranchHit = {
    covered: number;
    missed: number;
    available: number;
};
export type FileEntry = {
    filename: string;
    lineHits: Record<number, number>;
    branchHits: Record<number, BranchHit>;
};
export type AggregateCoverage = {
    timestamp: number;
    line: {
        available: number;
        covered: number;
        missed: number;
        percentage: number;
    };
    branch: {
        available: number;
        covered: number;
        missed: number;
        percentage: number;
    };
};
