export type AstGrepConfigParityReason = 'rule-dirs' | 'language-globs' | 'copied-pack-rule' | 'empty-local-rules' | 'rule-language' | 'tsx-companion' | 'invalid-yaml'; export interface AstGrepConfigParityOffender { /** The offending file (or the stale exception path). */ name: string; reason: AstGrepConfigParityReason; detail: string; } export interface AstGrepConfigParityFile { path: string; source: string; } export interface CheckAstGrepConfigParityOptions { sgconfig: { name: string; source: string; }; /** The tracked local rule directory, for example `ast-grep-rules`. */ localRuleDir: string; /** Local rule files, with paths relative to `localRuleDir`. */ localRules: readonly AstGrepConfigParityFile[]; /** Pack rule file paths, relative to the pack rules directory. */ packRulePaths: readonly string[]; /** Defaults to `DEFAULT_LANGUAGE_GLOBS`: the `Tsx` language over ts, mts, cts and tsx files. */ expectedLanguageGlobs?: Readonly>; /** Defaults to `Tsx`. */ defaultLanguage?: string; /** Rule path (relative to `localRuleDir`) to its required language. Defaults to `{}`. */ languageExceptions?: Readonly>; } export declare const DEFAULT_LANGUAGE_GLOBS: Readonly>; type Out = AstGrepConfigParityOffender[]; /** * Checks an ast-grep configuration against the shipped rule pack. Pure and synchronous: callers * supply file contents (see `discoverAstGrepConfig`). Returns offenders; an empty array passes. */ export declare function checkAstGrepConfigParity(options: CheckAstGrepConfigParityOptions): Out; export {};