/** * A file's measured value for a rule it exceeds by default. `max` is the file's count, or its * largest per-function count; `excess` is the sum of each per-function count above the default. * For per-file rules, `excess` equals `max`. */ export interface Measured { excess: number; max: number; } /** Measured values by file, then rule. A missing entry means the file is within the default. */ export type Measurements = Map>; /** * Lints `files` at their paths under a scratch directory with only `ruleNames` enabled, configured * exactly as `printedConfig` (from `oxlint --print-config`, without ceilings) configures them. The * measurement is therefore Oxlint's own, against each file's default. */ export declare function measureFiles(params: { files: ReadonlyArray<{ content: string; path: string; }>; oxlintFrom: string; printedConfig: Record; ruleNames: readonly string[]; }): Measurements; /** Lints the whole lint root, honoring its `ignorePatterns`, and measures `ruleNames`. */ export declare function measureRepository(params: { printedConfig: Record; root: string; ruleNames: readonly string[]; }): Measurements;