import type { AgencyConfig } from "../config.js"; import type { LintContext, LintFinding, LintRule } from "./types.js"; /** Every enabled rule. Append a rule here to enable it. */ export declare const LINT_RULES: LintRule[]; /** Run every rule over the context and concatenate their findings. */ export declare function runLinter(ctx: LintContext): LintFinding[]; /** * Parse `source` and lint it. Parses with the template OFF so every finding's * offsets index into `source` (docs/dev/locations.md). A file that does not * parse has no lint findings — the parser's own error is the user's problem * to fix first, and every caller of this function surfaces parse errors * through its own channel (CLI compile errors, LSP parse diagnostics). */ export declare function lintSource(source: string, filePath: string, config: AgencyConfig): LintFinding[];