import type { LintRule } from "./rule.js"; /** * Load local lint rules from `.chant/rules/`. * * Scans for `.ts` files in the nearest `.chant/rules/` directory found by * walking up from `projectDir` (stopping at the closest `package.json` to * avoid leaking into unrelated parent projects). Dynamically imports each * file and collects all exports that conform to the LintRule interface. * * @param projectDir - Directory the lint command was invoked against. May be * a sub-stack of a larger project — the rules dir is * resolved by walking up. * @returns Array of LintRule objects found in the discovered `.chant/rules/`. */ export declare function loadLocalRules(projectDir: string): Promise; //# sourceMappingURL=rule-loader.d.ts.map