import { type LintCeilings } from "./ceilingsFile"; import type { Measurements } from "./measure"; /** A file the branch changed, at its base path (absent if added) and head path (absent if deleted). */ export interface ChangedFile { basePath: string | undefined; headPath: string | undefined; } export interface Increase { file: string; message: string; rule: string; } /** * Finds what may not increase without approval: entries added or raised in lint-ceilings.json, * and listed files whose measured value grew. Lowered, removed, stale-high and within-default * entries all pass. An entry that follows its file's rename keeps the old entry's allowance. */ export declare function findIncreases(params: { baseCeilings: LintCeilings; baseMeasurements: Measurements; changedFiles: readonly ChangedFile[]; headCeilings: LintCeilings; headMeasurements: Measurements; }): Increase[]; /** Rules that list the file at either end of the branch, so measuring them can show growth. */ export declare function listedRules(params: { baseCeilings: LintCeilings; basePath: string; headCeilings: LintCeilings; headPath: string; }): string[]; /** * Lowers each ceiling to its file's measured value and drops entries for missing files and files * within the default. Never raises. */ export declare function tightenCeilings(params: { ceilings: LintCeilings; exists: (file: string) => boolean; measurements: Measurements; }): { ceilings: LintCeilings; changes: string[]; };