/** * Core differ functionality - main entry points. */ import type { ModuleAnalysisWithTypes, ApiChange, DiffOptions } from '../types'; /** * Compares two module analyses and produces API changes. * * Requires TypeChecker for accurate semantic analysis. Use `parseModuleWithTypes()` * to create the input analyses. * * @param oldAnalysis - The old (baseline) module analysis with TypeChecker * @param newAnalysis - The new module analysis with TypeChecker * @param options - Comparison options * @returns Array of API changes with multi-dimensional descriptors * * @alpha */ export declare function diffModules(oldAnalysis: ModuleAnalysisWithTypes, newAnalysis: ModuleAnalysisWithTypes, options?: DiffOptions): ApiChange[]; /** * Flattens nested changes into a single array. * Useful for reporting or counting total changes. * Adds 'is-nested-change' tag to nested changes. * * Note: This function does NOT mutate the input changes. * Each nested change gets a new descriptor with the tag added. * * @alpha */ export declare function flattenChanges(changes: ApiChange[]): ApiChange[]; /** * Groups changes by their descriptor key. * * @alpha */ export declare function groupChangesByDescriptor(changes: ApiChange[]): Map; //# sourceMappingURL=core.d.ts.map