/** * Auto-discovery for lint rules and post-synth checks. * * Scans directories for .ts files and loads exported rules/checks, * eliminating the need to manually list every rule in plugin.ts. */ import type { LintRule } from "./rule.js"; import type { PostSynthCheck } from "./post-synth.js"; /** * Discover lint rules from a directory. * * Scans the directory for .ts files (excluding tests, helpers, and index files), * loads each module, and collects any exported objects that look like a LintRule * (has `id`, `severity`, `category`, and `check` function). * * @param dir - Absolute path to the rules directory * @param importMetaUrl - The caller's import.meta.url (for createRequire) */ export declare function discoverLintRules(dir: string, importMetaUrl: string): LintRule[]; /** * Discover post-synth checks from a directory. * * Scans the directory for .ts files (excluding tests, helpers, and index files), * loads each module, and collects any exported objects that look like a PostSynthCheck * (has `id`, `description`, and `check` function). * * @param dir - Absolute path to the post-synth rules directory * @param importMetaUrl - The caller's import.meta.url (for createRequire) */ export declare function discoverPostSynthChecks(dir: string, importMetaUrl: string): PostSynthCheck[]; /** * List rule files in a directory (excluding tests, helpers, index). */ export declare function listRuleFiles(dir: string): string[]; //# sourceMappingURL=discover.d.ts.map