import type { ASTRule } from '../types.js'; /** * Pre-compiled AST queries for common restrictions. * These replace regex-based content rules with precise structural queries. * * Key advantages over regex: * - Zero false positives (AST ignores comments and strings) * - Catches all variants (destructuring, bracket notation, dynamic imports) * - Can express structural constraints regex cannot * * Query syntax: tree-sitter S-expressions * - (node_type) matches any node of that type * - (node_type field: (child)) matches with specific field * - @name captures the node * - (#eq? @name "value") exact string match on node text * - (#match? @name "regex") regex match on node text */ export declare const AST_BUILTINS: Record; /** * Get all AST rules for a restriction * Normalizes common variations (e.g., "no any" vs "no any types") */ export declare function getASTRules(restriction: string): ASTRule[] | null; /** * List all available AST builtin keys */ export declare function listASTBuiltins(): string[]; //# sourceMappingURL=builtins.d.ts.map