import { type Catalog } from "./model.js"; import type { SecurityPolicyAssetEvidence } from "./security-policy-inventory.js"; import type { Diagnostic, Evidence, Finding, RiskClass } from "./types/diagnostics.js"; export declare const TRUST_GRAPH_SCHEMA_VERSION: "renma.trustGraph.v2"; export type TrustGraphSchemaVersion = typeof TRUST_GRAPH_SCHEMA_VERSION; export type TrustGraphNodeType = "asset" | "owner" | "lifecycle_status" | "security_profile" | "effective_policy" | "diagnostic"; export type TrustGraphEdgeType = "owned_by" | "has_lifecycle_status" | "declares_dependency" | "references" | "owns_local_resource" | "statically_references" | "inherits_owner" | "selects_security_profile" | "inherits_policy" | "has_effective_policy" | "has_diagnostic"; export type TrustGraphFindingSource = "finding" | "diagnostic"; export type TrustGraphFindingSeverity = Finding["severity"] | Diagnostic["severity"]; export interface TrustGraphSummary { assetCount: number; nodeCount: number; edgeCount: number; findingCount: number; nodeTypeCounts: Record; edgeTypeCounts: Record; findingSeverityCounts: Record; riskClassCounts: Record; } export interface TrustGraphNode { id: string; type: TrustGraphNodeType; label: string; properties?: Record; evidence?: Evidence[]; } export interface TrustGraphEdge { id: string; from: string; to: string; type: TrustGraphEdgeType; properties?: Record; evidence?: Evidence[]; } export interface TrustGraphFinding { source: TrustGraphFindingSource; severity: TrustGraphFindingSeverity; message: string; path?: string; code?: string; id?: string; title?: string; riskClass?: RiskClass; evidence?: Evidence; } export interface TrustGraph { schemaVersion: TrustGraphSchemaVersion; summary: TrustGraphSummary; nodes: TrustGraphNode[]; edges: TrustGraphEdge[]; findings: TrustGraphFinding[]; } export interface TrustGraphInput { catalog: Catalog; findings?: Finding[]; diagnostics?: Diagnostic[]; securityPolicies?: SecurityPolicyAssetEvidence[]; } export declare function buildTrustGraph(input: TrustGraphInput): TrustGraph;