/** * Rule scanning and rule page generation for lexicon documentation. * * Scans lint rule and post-synth check source files to extract metadata, * and generates an MDX page listing them. */ import type { DocsConfig, RuleMeta } from "./docs-types.js"; /** A scanned rule: its extracted metadata plus the source it came from. */ export interface ScannedRule { meta: RuleMeta; source: string; } /** * Scan lint rule and post-synth check source files to extract metadata. * Uses regex to find id, severity, category, and description from source. */ export declare function scanRules(srcDir: string): RuleMeta[]; /** * Like {@link scanRules}, but keeps each rule's source text alongside its * metadata — the OKF bundle builder (#1060) reads the source to associate a * rule with the resource types it mentions. */ export declare function scanRulesWithSources(srcDir: string): ScannedRule[]; export declare function generateRules(config: DocsConfig, rules: RuleMeta[]): string; //# sourceMappingURL=docs-rule-scanning.d.ts.map