/** * Per-rule change extraction. * * The report says a rule fired four times and saved nineteen tokens. That is * enough to trust the `safe` level and nowhere near enough to review the * `aggressive` one, where the honest advice has always been "read the diff" — * and the diff was one undifferentiated block for every rule at once. * * This turns each rule into its own short list of "this became that", so an * aggressive run can be judged rule by rule and a single bad rule disabled * with `--disable`, instead of the whole level. */ export interface RuleChange { /** The text the rule removed or replaced. */ before: string; /** What it became. Empty when the text was simply deleted. */ after: string; } /** Changes reported per rule. The hit count carries the true total. */ export declare const DEFAULT_CHANGE_LIMIT = 5; /** * Extracts what a rule changed, as a short list of before/after pairs. * * Returns an empty list rather than a partial one when the change is too large * to summarise usefully — an empty list reads as "nothing to show here", which * is honest, where a truncated one would read as "this is all that happened". */ export declare function extractChanges(before: string, after: string, limit?: number): RuleChange[]; //# sourceMappingURL=changes.d.ts.map