/** * CSS/SCSS language adapter using tree-sitter-css WASM parser. * * CSS and SCSS files have no functions, classes, imports, or exports — * those methods return empty arrays. The adapter exists to enable AST-based * style declaration extraction for the style intelligence system (Spec 10). * * SCSS files are parsed with the CSS grammar. SCSS is a superset of CSS; * SCSS-specific constructs ($variables, @mixin, @include, @each, @for, @if) * will appear as parse errors but basic CSS declarations within rule sets * parse correctly. */ import type { AST, ASTNode, ClassInfo, ExportInfo, FunctionInfo, ImportInfo, InterfaceInfo, LanguageAdapter, NodePattern, SourceLocation } from '../types.js'; export declare class TreeSitterCssAdapter implements LanguageAdapter { readonly name = "css"; readonly fileExtensions: string[]; supportsFile(filePath: string): boolean; parse(filePath: string, content: string): Promise; findNodes(ast: AST, pattern: NodePattern): ASTNode[]; getParent(node: ASTNode): ASTNode | null; getChildren(node: ASTNode): ASTNode[]; getSiblings(node: ASTNode): ASTNode[]; getNodeType(node: ASTNode): string; getNodeText(node: ASTNode, sourceCode: string): string; getNodeName(node: ASTNode): string | null; getNodeLocation(node: ASTNode): SourceLocation; extractFunctions(_ast: AST): FunctionInfo[]; extractClasses(_ast: AST): ClassInfo[]; extractImports(_ast: AST): ImportInfo[]; extractExports(_ast: AST): ExportInfo[]; isClass(_node: ASTNode): boolean; isFunction(_node: ASTNode): boolean; isMethod(_node: ASTNode): boolean; isInterface(_node: ASTNode): boolean; isImport(_node: ASTNode): boolean; isExport(_node: ASTNode): boolean; isLoop(_node: ASTNode): boolean; isConditional(_node: ASTNode): boolean; isVariableDeclaration(_node: ASTNode): boolean; getTypeInfo(_node: ASTNode): string | null; getDocumentation(_node: ASTNode): string | null; getComplexity(_node: ASTNode): number; extractInterfaces(_ast: AST): InterfaceInfo[]; extractRawImports(_filePath: string, _content: string): Array<{ moduleSpecifier: string; isStatic: boolean; isDynamic: boolean; isRequire: boolean; line: number; }>; extractExportedSymbols(_ast: AST): Array<{ name: string; line: number; }>; private walk; private collectErrors; private matchesPattern; } //# sourceMappingURL=TreeSitterCssAdapter.d.ts.map