import { Jt as LanguageHints, Kt as DiffResult, Mt as CompatProvenance, Ot as CompatChangeCategory, Wt as ApiSurface, an as CompatSymbol, kt as CompatChangeSeverity, ln as LanguageId, nn as CompatSnapshot, pn as CompatPolicyHints } from "./types-Csp5WtkF.mjs"; //#region src/compat/classify.d.ts /** A single classified compatibility change. */ interface ClassifiedChange { /** Specific change category. */ category: CompatChangeCategory; /** Policy-aware severity (may differ from defaultSeverityForCategory). */ severity: CompatChangeSeverity; /** Fully-qualified symbol path. */ symbol: string; /** Deterministic ID for grouping related changes across languages. */ conceptualChangeId: string; /** Where the drift originated. */ provenance: CompatProvenance; /** Description of the old state. */ old: Record; /** Description of the new state. */ new: Record; /** Human-readable explanation. */ message: string; /** * Optional spec-level remediation hint. Set by post-classification rules * (see `detectForkedSchemas` in differ.ts) when a change has a recognized * upstream root cause that the spec author can fix. Surfaces in both the * machine-readable report and the human-readable summary. */ remediation?: string; } /** Result of classifying all changes between two snapshots. */ interface ClassificationResult { changes: ClassifiedChange[]; summary: { breaking: number; softRisk: number; additive: number; }; } /** * Classify changes between a baseline and candidate symbol. * Returns one or more classified changes for the diff. */ declare function classifySymbolChanges(baseline: CompatSymbol, candidate: CompatSymbol | undefined, policy: CompatPolicyHints, language?: LanguageId): ClassifiedChange[]; /** * Classify a new symbol as additive. */ declare function classifyAddedSymbol(symbol: CompatSymbol): ClassifiedChange; /** Summarize a list of classified changes by severity. */ declare function summarizeChanges(changes: ClassifiedChange[]): ClassificationResult['summary']; //#endregion //#region src/compat/differ.d.ts /** Result of diffing two compat snapshots. */ interface CompatDiffResult { changes: ClassifiedChange[]; summary: ClassificationResult['summary']; } /** * Diff two compat snapshots, producing classified changes with * policy-aware severity. */ declare function diffSnapshots(baseline: CompatSnapshot, candidate: CompatSnapshot, policy?: CompatPolicyHints): CompatDiffResult; /** * Compare two ApiSurface objects and return a DiffResult. * * This preserves the existing diffing behavior used by the overlay retry loop, * compat check, and all existing tests. The internal implementation uses the * same algorithms as before to maintain full backward compatibility with * overlay patching and verification workflows. */ declare function diffSurfaces(baseline: ApiSurface, candidate: ApiSurface, hints: LanguageHints): DiffResult; //#endregion export { ClassifiedChange as a, summarizeChanges as c, ClassificationResult as i, diffSnapshots as n, classifyAddedSymbol as o, diffSurfaces as r, classifySymbolChanges as s, CompatDiffResult as t }; //# sourceMappingURL=differ-ADNrVFli.d.mts.map