import { type SonarProviderMode } from "./sonar-provider.js"; export interface SonarImportInput { projectKey: string; organization?: string; provider?: SonarProviderMode; hostUrl?: string; branch?: string; commit?: string; analysisId?: string; actor: string; taskId?: string; sourceUrl?: string; payload: unknown; root?: string; } export interface SonarCondition { metric: string; metricKey?: string; status: string; actualValue?: string; comparator?: string; errorThreshold?: string; } export interface SonarFinding { key: string; rule?: string; severity?: string; type?: string; component?: string; line?: number; message: string; status?: string; effort?: string; tags: string[]; } export interface SonarSecurityHotspot { key: string; ruleKey?: string; component?: string; line?: number; message: string; status?: string; vulnerabilityProbability?: string; securityCategory?: string; } export interface SonarInsightSnapshot { projectKey: string; organization?: string; provider?: SonarProviderMode; hostUrl?: string; branch?: string; commit?: string; analysisId?: string; importedAt: string; actor: string; sourceUrl?: string; qualityGate: { status: string; conditions: SonarCondition[]; }; metrics: Record; findings: SonarFinding[]; securityHotspots: SonarSecurityHotspot[]; securityHotspotsUnavailableReason?: string; } export declare function importSonarInsights(input: SonarImportInput): Promise; export declare function normalizeSonarPayload(input: SonarImportInput): SonarInsightSnapshot; export declare function readSonarPayloadFile(file: string): Promise; export declare function fetchSonarPayload({ hostUrl, provider, projectKey, organization, branch, token, }: { hostUrl?: string; provider?: string; projectKey: string; organization?: string; branch?: string; token: string; }): Promise;