import { CompoundEntityRef } from '@backstage/catalog-model';
import { JsonCodeCoverage, JsonCoverageHistory } from './types';
import { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';
export type CodeCoverageApi = {
    getCoverageForEntity: (entity: CompoundEntityRef) => Promise<JsonCodeCoverage>;
    getFileContentFromEntity: (entity: CompoundEntityRef, filePath: string) => Promise<string>;
    getCoverageHistoryForEntity: (entity: CompoundEntityRef, limit?: number) => Promise<JsonCoverageHistory>;
};
export declare const codeCoverageApiRef: import("@backstage/core-plugin-api").ApiRef<CodeCoverageApi>;
export declare class CodeCoverageRestApi implements CodeCoverageApi {
    private readonly discoveryApi;
    private readonly fetchApi;
    constructor(options: {
        discoveryApi: DiscoveryApi;
        fetchApi: FetchApi;
    });
    private fetch;
    getCoverageForEntity(entityName: CompoundEntityRef): Promise<JsonCodeCoverage>;
    getFileContentFromEntity(entityName: CompoundEntityRef, filePath: string): Promise<string>;
    getCoverageHistoryForEntity(entityName: CompoundEntityRef, limit?: number): Promise<JsonCoverageHistory>;
}
